diff options
author | yufeng <yufeng@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-29 15:27:33 +0000 |
---|---|---|
committer | yufeng <yufeng@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-29 15:27:33 +0000 |
commit | df83ab947493060f40811015c66899e5552e7a12 (patch) | |
tree | 3f5888ff0adaf0bd996fae40cec1392b8e511840 | |
parent | d3e6368b4470dd443cf5d301714446124eed1d0a (diff) | |
download | ppe42-gcc-df83ab947493060f40811015c66899e5552e7a12.tar.gz ppe42-gcc-df83ab947493060f40811015c66899e5552e7a12.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181804 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/compat-common.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 246823cd2a5..49dd3b818fe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/compat/compat-common.h b/gcc/testsuite/gcc.dg/compat/compat-common.h index 8a92ea3e606..4b3fb9c14ca 100644 --- a/gcc/testsuite/gcc.dg/compat/compat-common.h +++ b/gcc/testsuite/gcc.dg/compat/compat-common.h @@ -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>. */ |