OSDN Git Service

PR other/51125
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Nov 2011 14:55:58 +0000 (14:55 +0000)
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Nov 2011 14:55:58 +0000 (14:55 +0000)
* trans-mem.c (expand_block_tm): Ignore clobbers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181619 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/trans-mem.c

index 28d5deb..d77a380 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-22  Michael Matz  <matz@suse.de>
+
+       PR other/51125
+       * trans-mem.c (expand_block_tm): Ignore clobbers.
+
 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
 
        *  config/darwin.h (ENDFILE_SPEC): New.
index 347183b..751572c 100644 (file)
@@ -2333,7 +2333,8 @@ expand_block_tm (struct tm_region *region, basic_block bb)
        {
        case GIMPLE_ASSIGN:
          /* Only memory reads/writes need to be instrumented.  */
-         if (gimple_assign_single_p (stmt))
+         if (gimple_assign_single_p (stmt)
+             && !gimple_clobber_p (stmt))
            {
              expand_assign_tm (region, &gsi);
              continue;