Commit 56cb44d4 by Michael Matz Committed by Michael Matz

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
parent 8cf36bb3
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.
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment