re PR rtl-optimization/47925 (delete_trivially_dead_insns mishandles volatile mems)
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 2 Mar 2011 13:25:10 +0000 (13:25 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 2 Mar 2011 13:25:10 +0000 (13:25 +0000)
commit34161e98f7d52dcd069e70d7ce0b4f4c901eaa1b
treeef8fb861ebff6b9fa90feb055763a53d2b76bb0a
parentb2e2ea671c7653b299435ed4e96c50460bfad48b
re PR rtl-optimization/47925 (delete_trivially_dead_insns mishandles volatile mems)

gcc/
PR rtl-optimization/47925
* cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
with side effects.  Remove the more-specific check for volatile asms.

gcc/testsuite/
PR rtl-optimization/47925
* gcc.c-torture/execute/pr47925.c: New test.

From-SVN: r170613
gcc/ChangeLog
gcc/cse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr47925.c [new file with mode: 0644]