summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 21:08:03 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 21:08:03 +0000
commit2adc8be5374522f00c3008aee6de1814576d8810 (patch)
tree06eda5321059d622205d0c4a3471c1788a03209c
parent30284d7a541f320aab32fc03f342d2916b53f3e8 (diff)
downloadppe42-gcc-2adc8be5374522f00c3008aee6de1814576d8810.tar.gz
ppe42-gcc-2adc8be5374522f00c3008aee6de1814576d8810.zip
* 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>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83931 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/compat/compat-common.h6
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
OpenPOWER on IntegriCloud