From 56cb44d47d1180d630838c5b8f5396c2bcd460ec Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Tue, 22 Nov 2011 14:55:58 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/trans-mem.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28d5deb2a85..d77a380bfaa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-22 Michael Matz + + PR other/51125 + * trans-mem.c (expand_block_tm): Ignore clobbers. + 2011-11-22 Iain Sandoe * config/darwin.h (ENDFILE_SPEC): New. diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 347183b1568..751572c4fb4 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; -- 2.30.2