This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] middle-end/30482
- From: Paolo Carlini <pcarlini at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com
- Date: Fri, 06 Jul 2007 02:33:09 +0200
- Subject: [PATCH] middle-end/30482
Hi,
consistently with the recent discussion, I tested the below, all
languages besides Ada, on x86_64-linux. Ok for mainline?
Paolo.
///////////////
2007-07-06 Paolo Carlini <pcarlini@suse.de>
PR middle-end/30482
* toplev.c (flag_complex_method): Initialize to 2.
* c-opts.c (c_common_post_options): Do not change flag_complex_method
conditional to flag_isoc99.
Index: gcc/toplev.c
===================================================================
*** gcc/toplev.c (revision 126390)
--- gcc/toplev.c (working copy)
*************** int flag_pcc_struct_return = DEFAULT_PCC
*** 275,281 ****
1 means wide ranges of inputs must work for complex divide.
2 means C99-like requirements for complex multiply and divide. */
! int flag_complex_method = 1;
/* Nonzero means that we don't want inlining by virtue of -fno-inline,
not just because the tree inliner turned us off. */
--- 275,281 ----
1 means wide ranges of inputs must work for complex divide.
2 means C99-like requirements for complex multiply and divide. */
! int flag_complex_method = 2;
/* Nonzero means that we don't want inlining by virtue of -fno-inline,
not just because the tree inliner turned us off. */
Index: gcc/c-opts.c
===================================================================
*** gcc/c-opts.c (revision 126390)
--- gcc/c-opts.c (working copy)
*************** c_common_post_options (const char **pfil
*** 1138,1148 ****
if (warn_implicit_function_declaration == -1)
warn_implicit_function_declaration = flag_isoc99;
- /* C99 requires special handling of complex multiplication and division;
- -ffast-math and -fcx-limited-range are handled in process_options. */
- if (flag_isoc99)
- flag_complex_method = 2;
-
/* If we're allowing C++0x constructs, don't warn about C++0x
compatibility problems. */
if (cxx_dialect == cxx0x)
--- 1138,1143 ----