2007-07-11 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jul 2007 10:23:56 +0000 (10:23 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jul 2007 10:23:56 +0000 (10:23 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126546 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-opts.c

index 3948f3c..7ab9f7c 100644 (file)
@@ -1,3 +1,10 @@
+2007-07-11  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.
+
 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR tree-optimization/32589
index d0fafc6..3a958c6 100644 (file)
@@ -232,6 +232,9 @@ c_common_init_options (unsigned int argc, const char **argv)
   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];
@@ -1138,11 +1141,6 @@ c_common_post_options (const char **pfilename)
   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)