aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-12-11 14:49:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-12-11 14:49:35 +0000
commit1ab538934532ccff71655a8bb8f63c1655dcfa36 (patch)
treef44e0ab3061c007ab3fa2f025f4e7d82e834bf92 /gcc
parentdad027154e8fff4ccc35940dbd60d4cbc6575aad (diff)
downloadgcc-1ab538934532ccff71655a8bb8f63c1655dcfa36.zip
gcc-1ab538934532ccff71655a8bb8f63c1655dcfa36.tar.gz
gcc-1ab538934532ccff71655a8bb8f63c1655dcfa36.tar.bz2
re PR lto/41915 (FAIL: gcc.dg/torture/builtin-math-7.c -O2 -flto execution test)
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. From-SVN: r155164
Diffstat (limited to 'gcc')
-rw-r--r--gcc/lto/ChangeLog6
-rw-r--r--gcc/lto/lto-lang.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 7e0a0d4..a7c4b3b 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index 0caa318..4c187b5 100644
--- a/gcc/lto/lto-lang.c
+++ b/gcc/lto/lto-lang.c
@@ -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;
}