From 43e7557b6e0632e056b517ff41ab1c7161fed9e6 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 30 Jun 2004 23:08:03 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/compat/compat-common.h | 6 ++++++ 2 files changed, 12 insertions(+) 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 -- 2.30.2