From 1ab538934532ccff71655a8bb8f63c1655dcfa36 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 11 Dec 2009 14:49:35 +0000 Subject: [PATCH] re PR lto/41915 (FAIL: gcc.dg/torture/builtin-math-7.c -O2 -flto execution test) 2009-12-11 Richard Guenther 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 --- gcc/lto/ChangeLog | 6 ++++++ gcc/lto/lto-lang.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 7e0a0d463530..a7c4b3b6c43f 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2009-12-11 Richard Guenther + + 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 * 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 0caa3182dda3..4c187b5091e7 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; } -- 2.43.5