http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46882
Summary: Wrong code generated for arm with -O2 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: raj.k...@gmail.com Created attachment 22703 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22703 testcase compiling the following testcase with -O2 and executing the resulting binary on arm machine or qemu results in wrong results. The testcase works fine at -O1 or below. The problem is seen on 4.5 branch too.