<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi<br>
<br>
I think this is actually an RTEMS conditional issue but filed it as<br>
a GCC PR anyway for review.<br>
<br>
<a class="moz-txt-link-freetext" href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542</a><br>
<br>
This was generated building arm-rtems multilib. The PR has a
preprocessed<br>
file and can easily reproduce the error.<br>
<br>
Feedback appreciated. I suspect we have selected the wrong code
based on<br>
the compilation flags or have an invalid multilib combination.<br>
<pre class="bz_comment_text" id="comment_text_0" style="font-size: medium; font-family: monospace; white-space: pre-wrap; width: 50em; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">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 <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>,cpsr'
{standard input}:189: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bic <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>,#(1<<7)'
{standard input}:190: Error: attempt to use an ARM instruction on a Thumb-only processor -- `orr <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>,<a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0" style="color: rgb(102, 51, 102);">r0</a>'
{standard input}:191: Error: attempt to use an ARM instruction on a Thumb-only processor -- `msr cpsr,<a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>'
{standard input}:192: Error: attempt to use an ARM instruction on a Thumb-only processor -- `add <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>,pc,#1'
{standard input}:193: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bx <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>'
{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 <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0" style="color: rgb(102, 51, 102);">r0</a>,cpsr'
{standard input}:220: Error: attempt to use an ARM instruction on a Thumb-only processor -- `and <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=0" style="color: rgb(102, 51, 102);">r0</a>,#(1<<7)'
{standard input}:221: Error: attempt to use an ARM instruction on a Thumb-only processor -- `add <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>,pc,#1'
{standard input}:222: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bx <a href="http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=3" style="color: rgb(102, 51, 102);">r3</a>'</pre>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</body>
</html>