diff options
author | Richard Guenther <rguenther@suse.de> | 2010-11-15 09:43:01 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-11-15 09:43:01 +0000 |
commit | 192f8da50052b1be01ec009776aed047512fa7d1 (patch) | |
tree | 74b6548bdd26130fbb79820bade116e8b13b1ccf | |
parent | db710796abeb37e6a8ed8bc148c288107bc87636 (diff) | |
download | gcc-192f8da50052b1be01ec009776aed047512fa7d1.zip gcc-192f8da50052b1be01ec009776aed047512fa7d1.tar.gz gcc-192f8da50052b1be01ec009776aed047512fa7d1.tar.bz2 |
re PR lto/44150 (g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o)
2010-11-15 Richard Guenther <rguenther@suse.de>
PR lto/44150
* lto-opts.c (lto_write_options): Write -fexceptions even if
not set by the user.
From-SVN: r166744
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto-opts.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea3e335..08864a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-11-15 Richard Guenther <rguenther@suse.de> + + PR lto/44150 + * lto-opts.c (lto_write_options): Write -fexceptions even if + not set by the user. + 2010-11-13 Paolo Bonzini <bonzini@gnu.org> PR c/46462 diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c index eeb41e9..807f55b 100644 --- a/gcc/lto-opts.c +++ b/gcc/lto-opts.c @@ -299,6 +299,13 @@ lto_write_options (void) struct lto_simple_header header; struct lto_output_stream *header_stream; + /* Targets and languages can provide defaults for -fexceptions but + we only process user options from the command-line. Until we + serialize out a white list of options from the new global state + explicitly append important options as user options here. */ + if (flag_exceptions) + lto_register_user_option (OPT_fexceptions, NULL, 1, CL_COMMON); + lto_begin_section (section_name, !flag_wpa); free (section_name); |