diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-15 09:43:01 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-15 09:43:01 +0000 |
commit | 7617fed3c4c6df92d9e529896abd52a2d6cd529e (patch) | |
tree | 74b6548bdd26130fbb79820bade116e8b13b1ccf /gcc/lto-opts.c | |
parent | fda718b83bb45587f2a5e3166b91ecd94717f801 (diff) | |
download | gcc-7617fed3c4c6df92d9e529896abd52a2d6cd529e.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r-- | gcc/lto-opts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c index eeb41e9d4ce..807f55b227f 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); |