aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2011-11-22 14:55:58 +0000
committerMichael Matz <matz@gcc.gnu.org>2011-11-22 14:55:58 +0000
commit56cb44d47d1180d630838c5b8f5396c2bcd460ec (patch)
tree65fb37c8cf0d13adad7ee472651846878b8fe965 /gcc
parent8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d (diff)
downloadgcc-56cb44d47d1180d630838c5b8f5396c2bcd460ec.zip
gcc-56cb44d47d1180d630838c5b8f5396c2bcd460ec.tar.gz
gcc-56cb44d47d1180d630838c5b8f5396c2bcd460ec.tar.bz2
re PR other/51125 (FAIL: g++.dg/tm/pr45940-3.C)
PR other/51125 * trans-mem.c (expand_block_tm): Ignore clobbers. From-SVN: r181619
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/trans-mem.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 28d5deb..d77a380 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index 347183b..751572c 100644
--- a/gcc/trans-mem.c
+++ b/gcc/trans-mem.c
@@ -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;