ARM Invalid Code Review Request

Joel Sherrill joel.sherrill at oarcorp.com
Thu Jan 8 16:57:02 UTC 2015


Hi

I think this is actually an RTEMS conditional issue but filed it as
a GCC PR anyway for review.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542

This was generated building arm-rtems multilib. The PR has a preprocessed
file and can easily reproduce the error.

Feedback appreciated. I suspect we have selected the wrong code based on
the compilation flags or have an invalid multilib combination.

arm-rtems4.11-gcc --pipe  -mthumb -march=armv6-m --pipe -DHAVE_CONFIG_H   -I../../.. -I../../../../../../lib/include   -g -O2 -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT libscorecpu_a-cpu.o -MD -MP -MF .deps/libscorecpu_a-cpu.Tpo -c -o libscorecpu_a-cpu.o `test -f 'cpu.c' || echo '/users/joel/test-gcc/rtems/cpukit/score/cpu/arm/'`cpu.c
{standard input}: Assembler messages:
{standard input}:187: Error: selected processor does not support ARM opcodes
{standard input}:188: Error: attempt to use an ARM instruction on a Thumb-only processor -- `mrs r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>,cpsr'
{standard input}:189: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bic r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>,#(1<<7)'
{standard input}:190: Error: attempt to use an ARM instruction on a Thumb-only processor -- `orr r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>,r0 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0>'
{standard input}:191: Error: attempt to use an ARM instruction on a Thumb-only processor -- `msr cpsr,r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>'
{standard input}:192: Error: attempt to use an ARM instruction on a Thumb-only processor -- `add r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>,pc,#1'
{standard input}:193: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bx r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>'
{standard input}:218: Error: selected processor does not support ARM opcodes
{standard input}:219: Error: attempt to use an ARM instruction on a Thumb-only processor -- `mrs r0 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0>,cpsr'
{standard input}:220: Error: attempt to use an ARM instruction on a Thumb-only processor -- `and r0 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0>,#(1<<7)'
{standard input}:221: Error: attempt to use an ARM instruction on a Thumb-only processor -- `add r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>,pc,#1'
{standard input}:222: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bx r3 <http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3>'


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20150108/4e5c633e/attachment.html>


More information about the devel mailing list