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
This commit is contained in:
Michael Matz 2011-11-22 14:55:58 +00:00 committed by Michael Matz
parent 8cf36bb3b8
commit 56cb44d47d
2 changed files with 7 additions and 1 deletions

View 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.

View 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;