re PR middle-end/48770 (wrong code with -O -fprofile-arcs -fPIC -fno-dce -fno-forward...
authorJeff Law <law@redhat.com>
Thu, 23 Jun 2011 21:30:20 +0000 (15:30 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 23 Jun 2011 21:30:20 +0000 (15:30 -0600)
commitb0c11403d6546563d66be42922b1606572aec255
treeec001f94b4dc1405030f08d6e85ac05f217a3e9a
parent49e9c661145c32c17dff2c364de890c0ca46225e
re PR middle-end/48770 (wrong code with -O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate -fno-tree-forwprop)

PR middle-end/48770
* reload.h (reload): Change to return a bool.
* ira.c (ira): If requested by reload, run a fast DCE pass after
reload has completed.  Fix comment typo.
* reload1.c (need_dce): New file scoped static.
(reload): Set reload_completed here.  Return whether or not a DCE
pass after reload is needed.
(delete_dead_insn): Set need_dce as needed.

PR middle-end/48770
* gcc.dg/pr48770.c: New test.

From-SVN: r175353
gcc/ChangeLog
gcc/ira.c
gcc/reload.h
gcc/reload1.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48770.c [new file with mode: 0644]