http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47708
Summary: incorrect code on -O2 without -fno-tree-pre
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 23310
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23310
minimal case
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.5.2/configure --enable-lto
Thread model: posix
gcc version 4.5.2 (GCC)
Compiling the following minimal case on -O2 or -O3 and running results in
incorrect output; with -O0, -O1, or -Os, it is correct. -O2 -fno-tree-pre
results in correct output, but -O1 -ftree-pre is also correct. GCC 4.4.3
appears to work.