aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2011-12-22 20:18:11 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2011-12-22 20:18:11 +0000
commitee777b71644eda0bf9e3c6dc81e6518ed594ec8a (patch)
tree5a4973303a5a18453debd3fb5105c8ce93b7c9b7 /gcc/opts.c
parenta05fe1907110a339405d369b6824a4afd35ed9dd (diff)
downloadgcc-ee777b71644eda0bf9e3c6dc81e6518ed594ec8a.zip
gcc-ee777b71644eda0bf9e3c6dc81e6518ed594ec8a.tar.gz
gcc-ee777b71644eda0bf9e3c6dc81e6518ed594ec8a.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): Call sorry on -fgnu-tm and -fnon-call-exceptions combination. From-SVN: r182636
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 3153fe5..2ed5560 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -663,6 +663,9 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
opts->x_flag_toplevel_reorder = 0;
}
+ 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;