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@redhat.com>2012-01-04 14:53:30 +0000
commitc68fbadc9131182c5cd59774ec2d3b41ca6d3288 (patch)
tree76eafa789febfbb0613a05a25b137223b34ef3d5 /gcc/opts.c
parentec2c94bfc149ea26397595d71b76a395d8fdab14 (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@182877 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 2ed556030eb..121cf69304b 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;