diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2011-12-22 20:18:11 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2011-12-22 20:18:11 +0000 |
commit | 638bac0479948c3a440c3ff53612d56a0b929ce1 (patch) | |
tree | 5a4973303a5a18453debd3fb5105c8ce93b7c9b7 /gcc/opts.c | |
parent | 08d621a289077d17f5722963d7c09396cce7d67f (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.c | 3 |
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; |