This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch testsuite] Use complex floating-point constant in the macro CDBL


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.zhang@arm.com>

Use complex floating-point constant in CDBL.

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

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]