aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-12-26 20:27:09 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-12-26 20:27:09 -0800
commit82d3d6c89339f5efa99b3b76347e0bbdffc14be4 (patch)
treec58fd5ff9f3e5baf3d548a46d1a39cc44e71c507 /gcc
parentc91dead9bea812cbca3f8bce8b2e119813303328 (diff)
downloadgcc-82d3d6c89339f5efa99b3b76347e0bbdffc14be4.zip
gcc-82d3d6c89339f5efa99b3b76347e0bbdffc14be4.tar.gz
gcc-82d3d6c89339f5efa99b3b76347e0bbdffc14be4.tar.bz2
compat-common.h (CINT, CDBL): Use multiplication by 1i instead of token pasting.
* gcc.dg/compat/compat-common.h (CINT, CDBL): Use multiplication by 1i instead of token pasting. From-SVN: r92635
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/compat/compat-common.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 71547b7..4630b06 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-26 Richard Henderson <rth@redhat.com>
+
+ * gcc.dg/compat/compat-common.h (CINT, CDBL): Use multiplication
+ by 1i instead of token pasting.
+
2004-12-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR tree-optimization/17578
diff --git a/gcc/testsuite/gcc.dg/compat/compat-common.h b/gcc/testsuite/gcc.dg/compat/compat-common.h
index c2664ac..635e744 100644
--- a/gcc/testsuite/gcc.dg/compat/compat-common.h
+++ b/gcc/testsuite/gcc.dg/compat/compat-common.h
@@ -25,8 +25,8 @@
#endif
#ifdef __GNUC__
-#define CINT(x, y) (x + __extension__ y##i)
-#define CDBL(x, y) (x + __extension__ y##i)
+#define CINT(x, y) (x + y * __extension__ 1i)
+#define CDBL(x, y) (x + y * __extension__ 1i)
#else
#ifdef __SUNPRO_C
/* ??? Complex support without <complex.h>. */