re PR middle-end/51212 (ICE: verify_flow_info failed: BB 3 can not throw but has...
authorAldy Hernandez <aldyh@redhat.com>
Wed, 4 Jan 2012 14:53:30 +0000 (14:53 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 4 Jan 2012 14:53:30 +0000 (14:53 +0000)
        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.

From-SVN: r182877

gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c

index fc64456497162bd042a25363de1833fee7a51ef8..d01b88deeb425c5aaf9a409b75aede488757d2be 100644 (file)
@@ -1,3 +1,10 @@
+2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
+
+       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.
+
 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
 
        PR middle-end/51696
index bb05d88b55f5c3c3385bd64776e34f8083cdfb2e..1e45b616f48d427e2046d4de891a8c268d239d52 100644 (file)
@@ -1742,6 +1742,9 @@ For more information on GCC's support for transactional memory,
 @xref{Enabling libitm,,The GNU Transactional Memory Library,libitm,GNU
 Transactional Memory Library}.
 
+Note that the transactional memory feature is not supported with
+non-call exceptions (@option{-fnon-call-exceptions}).
+
 @item -fms-extensions
 @opindex fms-extensions
 Accept some non-standard constructs used in Microsoft header files.
index 2ed556030eb26f4fffca3324f9e2d97ed1898cb0..121cf69304b06a0d03df8cc3debb7a6a1353f3d5 100644 (file)
@@ -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;