Comment 5 for bug 791327

Revision history for this message
In , Michael Hope (michaelh1) wrote :

Created attachment 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