http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49335

           Summary: ARM: Invalid assembler generated while compiling C++
                    code from 'codeblocks'
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: michael.h...@linaro.org


Created attachment 24468
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24468
Reduced test case

The attached testcase is derived from codeblocks 10.05 and fails to build on
ARM due to generating invalid assembler.

To reproduce:

michaelh@ursa2:~/linaro/bugs$
~/linaro/toolchains/gcc-4.7~svn174795-armv7l-maverick-cbuild127-ursa3-cortexa9r1/bin/g++
-c -O2 -save-temps lp791327.cpp 

lp791327.s: Assembler messages:
lp791327.s:76: Error: r13 not allowed here -- `rsb r0,sp,r0,lsl#2'

The fault occurs in 4.6.0 and current trunk.  It does not occur in 4.5.3.

Originally reported at
https://bugs.launchpad.net/ubuntu/+source/codeblocks/+bug/791327

Reply via email to