diff options
-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 35a8b88..69d8c19 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 a109c1e..c2664ac 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 |