From: Eric Botcazou Date: Wed, 30 Jun 2004 21:08:03 +0000 (+0200) Subject: compat-common.h: Wrap up CINT in an #ifndef SKIP_COMPLEX_INT/#endif pair. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43e7557b6e0632e056b517ff41ab1c7161fed9e6;p=gcc.git 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 . From-SVN: r83931 --- 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 + + * gcc.dg/compat/compat-common.h: Wrap up CINT in + an #ifndef SKIP_COMPLEX_INT/#endif pair. + Special-case the Sun compiler wrt to . + 2004-06-30 Nitin Yewale * 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 . */ +#else #include +#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