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: [email protected]
ReportedBy: [email protected]
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: -10000
a: -68
value: -22
best: -23
a: -23
Output with -O3:
value: -23
best: -10000
a: -68
value: -22
best: -23
a: 65513
BUG