This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] middle-end/30482 (take 2)
- 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 03:57:49 +0200
- Subject: [PATCH] middle-end/30482 (take 2)
Hi again,
I have this new patch... Ok now?
Paolo.
///////////////
2007-07-06 Paolo Carlini <pcarlini@suse.de>
PR middle-end/30482
* c-opts.c (c_common_post_options): Do not change flag_complex_method
conditional to flag_isoc99.
(c_common_init_options): Do it here, unconditionally.
Index: gcc/c-opts.c
===================================================================
*** gcc/c-opts.c (revision 126390)
--- gcc/c-opts.c (working copy)
*************** c_common_init_options (unsigned int argc
*** 232,237 ****
--- 232,240 ----
warn_pointer_arith = c_dialect_cxx ();
warn_write_strings = c_dialect_cxx();
+ /* By default, C99-like requirements for complex multiply and divide. */
+ flag_complex_method = 2;
+
deferred_opts = XNEWVEC (struct deferred_opt, argc);
result = lang_flags[c_language];
*************** 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)
--- 1141,1146 ----