diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-06-30 23:08:03 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-06-30 21:08:03 +0000 |
commit | 43e7557b6e0632e056b517ff41ab1c7161fed9e6 (patch) | |
tree | 06eda5321059d622205d0c4a3471c1788a03209c /gcc/testsuite | |
parent | 1d528e29aabbe60e60e3f19c78def8097ccb9157 (diff) | |
download | gcc-43e7557b6e0632e056b517ff41ab1c7161fed9e6.tar.gz |
compat-common.h: Wrap up CINT in an #ifndef SKIP_COMPLEX_INT/#endif pair.
* gcc.dg/compat/compat-common.h: Wrap up CINT in
an #ifndef SKIP_COMPLEX_INT/#endif pair.
Special-case the Sun compiler wrt to <complex.h>.
From-SVN: r83931
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/compat-common.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 35a8b88a781..69d8c1926e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-06-30 Eric Botcazou <ebotcazou@libertysurf.fr> + + * gcc.dg/compat/compat-common.h: Wrap up CINT in + an #ifndef SKIP_COMPLEX_INT/#endif pair. + Special-case the Sun compiler wrt to <complex.h>. + 2004-06-30 Nitin Yewale <nitiny@kpitcummins.com> * gcc.dg/Wunreachable-8.C: New test. diff --git a/gcc/testsuite/gcc.dg/compat/compat-common.h b/gcc/testsuite/gcc.dg/compat/compat-common.h index a109c1ed1f2..c2664acbd19 100644 --- a/gcc/testsuite/gcc.dg/compat/compat-common.h +++ b/gcc/testsuite/gcc.dg/compat/compat-common.h @@ -28,8 +28,14 @@ #define CINT(x, y) (x + __extension__ y##i) #define CDBL(x, y) (x + __extension__ y##i) #else +#ifdef __SUNPRO_C +/* ??? Complex support without <complex.h>. */ +#else #include <complex.h> +#endif +#ifndef SKIP_COMPLEX_INT #define CINT(x, y) ((_Complex int) (x + y * _Complex_I)) +#endif #define CDBL(x, y) (x + y * _Complex_I) #endif |