OSDN Git Service

2009-12-11 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 14:49:35 +0000 (14:49 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 14:49:35 +0000 (14:49 +0000)
PR lto/41915
* lto-lang.c (lto_init_options): Initialize flag_complex_method
to the C99 default.  Do not set flag_unit_at_a_time.

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

gcc/lto/ChangeLog
gcc/lto/lto-lang.c

index 7e0a0d4..a7c4b3b 100644 (file)
@@ -1,3 +1,9 @@
+2009-12-11  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/41915
+       * lto-lang.c (lto_init_options): Initialize flag_complex_method
+       to the C99 default.  Do not set flag_unit_at_a_time.
+
 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
 
        * lto-lang.c (handle_nonnull_attribute): Remove unused attr_arg_num
index 0caa318..4c187b5 100644 (file)
@@ -600,9 +600,11 @@ static unsigned int
 lto_init_options (unsigned int argc ATTRIBUTE_UNUSED,
                  const char **argv ATTRIBUTE_UNUSED)
 {
-  /* Always operate in unit-at-time mode so that we can defer
-     decisions about what to output.  */
-  flag_unit_at_a_time = 1;
+  /* By default, C99-like requirements for complex multiply and divide.
+     ???  Until the complex method is encoded in the IL this is the only
+     safe choice.  This will pessimize Fortran code with LTO unless
+     people specify a complex method manually or use -ffast-math.  */
+  flag_complex_method = 2;
 
   return CL_LTO;
 }