aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2012-01-04 14:53:30 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2012-01-04 14:53:30 +0000
commit7ba6572377d8cc69471fc77f37c1880e808c449c (patch)
tree76eafa789febfbb0613a05a25b137223b34ef3d5 /gcc/opts.c
parent3a54c4564436e79b70b8dd3b6651b7a2fbaea028 (diff)
downloadgcc-7ba6572377d8cc69471fc77f37c1880e808c449c.zip
gcc-7ba6572377d8cc69471fc77f37c1880e808c449c.tar.gz
gcc-7ba6572377d8cc69471fc77f37c1880e808c449c.tar.bz2
re PR middle-end/51212 (ICE: verify_flow_info failed: BB 3 can not throw but has an EH edge with -fgnu-tm -fnon-call-exceptions and transaction_callable)
PR middle-end/51212 * opts.c (finish_options): Sorry out when using transactional memory and non-call exceptions. * doc/invoke.texi (C Dialect Options): Document it. From-SVN: r182877
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 2ed5560..121cf69 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -666,6 +666,9 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
if (opts->x_flag_tm && opts->x_flag_non_call_exceptions)
sorry ("transactional memory is not supported with non-call exceptions");
+ if (opts->x_flag_tm && opts->x_flag_non_call_exceptions)
+ sorry ("transactional memory is not supported with non-call exceptions");
+
/* -Wmissing-noreturn is alias for -Wsuggest-attribute=noreturn. */
if (opts->x_warn_missing_noreturn)
opts->x_warn_suggest_attribute_noreturn = true;