PING.

On 11/22/11 15:11, Yufeng Zhang wrote:
Hi,

This patch changes the macro CDBL in gcc.dg/compat/compat-common.h
to use complex floating-point constant rather than complex integer
constant.

CDBL is a macro to help construct complex floating-point constants in a
number of compat tests.

I have been running the compat test against a compiler that only supports
floating-point complex types; having an integral complex constant in
CDBL has caused some troubles.

Is it OK for trunk?

Thanks,
Yufeng

gcc/testsuite/ChangeLog
2011-11-22  Yufeng Zhang  <yufeng.zh...@arm.com>

          Use complex floating-point constant in CDBL.

          * gcc.dg/compat/compat-common.h (CDBL): Replace 1i with 1.0i.


patch.txt


diff --git a/gcc/testsuite/gcc.dg/compat/compat-common.h 
b/gcc/testsuite/gcc.dg/compat/compat-common.h
index 8a92ea3..4b3fb9c 100644
--- a/gcc/testsuite/gcc.dg/compat/compat-common.h
+++ b/gcc/testsuite/gcc.dg/compat/compat-common.h
@@ -33,7 +33,7 @@
  #ifndef SKIP_COMPLEX
  #ifdef __GNUC__
  #define CINT(x, y) (x + y * __extension__ 1i)
-#define CDBL(x, y) (x + y * __extension__ 1i)
+#define CDBL(x, y) (x + y * __extension__ 1.0i)
  #else
  #ifdef __SUNPRO_C
  /* ??? Complex support without<complex.h>.  */


Reply via email to