summaryrefslogtreecommitdiff
path: root/gcc/lto-opts.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-06 02:15:30 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-06 02:15:30 +0000
commit701c3ea94860c878112a2357bf576cce476f5223 (patch)
treee42c3f93e644d6029160f633bc071200be69bcc7 /gcc/lto-opts.c
parenta04a7bec5afd7a0c4d7f32d84f7fa4832600ce70 (diff)
parent793f83aeb2332046c68f1ea901230f353610fe46 (diff)
downloadgcc-701c3ea94860c878112a2357bf576cce476f5223.tar.gz
Merge in trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@204436 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r--gcc/lto-opts.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c
index 0a63f89c882..c9d4e03d00c 100644
--- a/gcc/lto-opts.c
+++ b/gcc/lto-opts.c
@@ -77,7 +77,7 @@ lto_write_options (void)
obstack_init (&temporary_obstack);
- /* Output options that affect GIMPLE IL semantics and are implicitely
+ /* Output options that affect GIMPLE IL semantics and are implicitly
enabled by the frontend.
This for now includes an explicit set of options that we also handle
explicitly in lto-wrapper.c. In the end the effects on GIMPLE IL
@@ -88,8 +88,13 @@ lto_write_options (void)
if (global_options.x_flag_exceptions)
append_to_collect_gcc_options (&temporary_obstack, &first_p,
"-fexceptions");
+ /* -fnon-call-exceptions changes the generation of exception
+ regions. It is enabled implicitly by the Go frontend. */
+ if (global_options.x_flag_non_call_exceptions)
+ append_to_collect_gcc_options (&temporary_obstack, &first_p,
+ "-fnon-call-exceptions");
- /* Output explicitely passed options. */
+ /* Output explicitly passed options. */
for (i = 1; i < save_decoded_options_count; ++i)
{
struct cl_decoded_option *option = &save_decoded_options[i];