[Bug target/56513] New: Wrong code generation with -O3 on ARM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56513 Bug #: 56513 Summary: Wrong code generation with -O3 on ARM Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: tim.ko...@filezilla-project.org Created attachment 29571 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29571 Small test program exhibiting the problem If I'm cross-compiling the attached sample-program using gcc 4.7.2 for ARM on an x86-64 system, the resulting binary behaves wrongly if -O3 is used. Output with -O0: value: -23 best: -1 a: -68 value: -22 best: -23 a: -23 Output with -O3: value: -23 best: -1 a: -68 value: -22 best: -23 a: 65513 BUG
[Bug target/56513] Wrong code generation with -O3 on ARM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56513 --- Comment #1 from Tim Kosse 2013-03-03 18:47:18 UTC --- Created attachment 29572 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29572 Preprocessed file Created using the following command: arm-unknown-linux-gnueabi-g++ -v -save-temps -O3 bug.cpp
[Bug target/56513] Wrong code generation with -O3 on ARM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56513 --- Comment #2 from Tim Kosse 2013-03-03 18:48:49 UTC --- Created attachment 29573 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29573 Compiler output Output of arm-unknown-linux-gnueabi-g++ -v -save-temps -O3 bug.cpp
[Bug target/56513] Wrong code generation with -O3 on ARM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56513 --- Comment #3 from Tim Kosse 2013-03-03 18:55:20 UTC --- Also happens with GCC 4.7.1 and 4.6.3.