From ee777b71644eda0bf9e3c6dc81e6518ed594ec8a Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Thu, 22 Dec 2011 20:18:11 +0000 Subject: 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 --- gcc/opts.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/opts.c') 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; -- cgit v1.1