aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2013-11-04 20:29:36 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-11-04 20:29:36 +0000
commit2a5145b0dd7f1e10431c6d93c8cc9848cef1e6a3 (patch)
tree06fe2ff33f0ba57dffa554db3bb664aa5c227ed2 /gcc/lto-wrapper.c
parentb96d19ffd05a88333a2ec56f06b68fede6e353b0 (diff)
downloadgcc-2a5145b0dd7f1e10431c6d93c8cc9848cef1e6a3.zip
gcc-2a5145b0dd7f1e10431c6d93c8cc9848cef1e6a3.tar.gz
gcc-2a5145b0dd7f1e10431c6d93c8cc9848cef1e6a3.tar.bz2
builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
gcc/: * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define. * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync builtins that take pointers. * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set. * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions. (run_gcc): Pass -fnon-call-exceptions. gcc/testsuite/: * g++.dg/ext/sync-4.C: New test. From-SVN: r204360
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 755993c..57978c8 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -409,6 +409,7 @@ merge_and_complain (struct cl_decoded_option **decoded_options,
case OPT_fpie:
case OPT_fcommon:
case OPT_fexceptions:
+ case OPT_fnon_call_exceptions:
case OPT_fgnu_tm:
/* Do what the old LTO code did - collect exactly one option
setting per OPT code, we pick the first we encounter.
@@ -573,6 +574,7 @@ run_gcc (unsigned argc, char *argv[])
case OPT_fpie:
case OPT_fcommon:
case OPT_fexceptions:
+ case OPT_fnon_call_exceptions:
case OPT_fgnu_tm:
case OPT_freg_struct_return:
case OPT_fpcc_struct_return: