re PR rtl-optimization/20290 (Miscompilation on ppc/arm with -Os)
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 2 Apr 2005 16:53:44 +0000 (16:53 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 2 Apr 2005 16:53:44 +0000 (16:53 +0000)
commit9f05ff0a19805354543881f05f84d3157e619bad
tree044b11cdff4c1f9ae9e84e8a7ad960da4a7111d2
parent3a5afdfc208747167216c3318134c159860b59b2
re PR rtl-optimization/20290 (Miscompilation on ppc/arm with -Os)

gcc/ChangeLog:
PR rtl-optimization/20290
* loop.c (for_each_insn_in_loop): Don't assume the loop body runs
in every iteration if the entry point is the exit test.
gcc/testsuite/ChangeLog:
PR rtl-optimization/20290
* gcc.c-torture/execute/loop-ivopts-2.c: New.

From-SVN: r97441
gcc/ChangeLog
gcc/loop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/loop-ivopts-2.c [new file with mode: 0644]