Use complex floating-point constant in CDBL.

2011-11-29  Yufeng Zhang  <yufeng.zhang@arm.com>

	Use complex floating-point constant in CDBL.

	* gcc.dg/compat/compat-common.h (CDBL): Replace 1i with 1.0i.

From-SVN: r181804
This commit is contained in:
Yufeng Zhang 2011-11-29 15:27:33 +00:00 committed by Yufeng Zhang
parent e62acfd26f
commit 9645592c93
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-11-29 Yufeng Zhang <yufeng.zhang@arm.com>
Use complex floating-point constant in CDBL.
* gcc.dg/compat/compat-common.h (CDBL): Replace 1i with 1.0i.
2011-11-29 Tobias Burnus <burnus@net-b.de>
PR fortran/51306

View file

@ -33,7 +33,7 @@
#ifndef SKIP_COMPLEX
#ifdef __GNUC__
#define CINT(x, y) (x + y * __extension__ 1i)
#define CDBL(x, y) (x + y * __extension__ 1i)
#define CDBL(x, y) (x + y * __extension__ 1.0i)
#else
#ifdef __SUNPRO_C
/* ??? Complex support without <complex.h>. */