From 82d3d6c89339f5efa99b3b76347e0bbdffc14be4 Mon Sep 17 00:00:00 2001
From: Richard Henderson <rth@redhat.com>
Date: Sun, 26 Dec 2004 20:27:09 -0800
Subject: [PATCH] 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
---
 gcc/testsuite/ChangeLog                     | 5 +++++
 gcc/testsuite/gcc.dg/compat/compat-common.h | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 71547b78daba..4630b0626ea8 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 c2664acbd194..635e7446d760 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>.  */
-- 
GitLab