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@redhat.com>2011-12-22 20:18:11 +0000
commit638bac0479948c3a440c3ff53612d56a0b929ce1 (patch)
tree5a4973303a5a18453debd3fb5105c8ce93b7c9b7 /gcc/opts.c
parent08d621a289077d17f5722963d7c09396cce7d67f (diff)
PR middle-end/51212
* opts.c (finish_options): Call sorry on -fgnu-tm and -fnon-call-exceptions combination. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@182636 138bc75d-0d04-0410-961f-82ee72b054a4
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 3153fe50274..2ed556030eb 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;