public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/64542] New: ARM use of ARM instruction on Thumb-only target @ 2015-01-08 16:48 joel at gcc dot gnu.org 2015-01-08 16:53 ` [Bug target/64542] " joel at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: joel at gcc dot gnu.org @ 2015-01-08 16:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542 Bug ID: 64542 Summary: ARM use of ARM instruction on Thumb-only target Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: joel at gcc dot gnu.org $ arm-rtems4.11-gcc --version arm-rtems4.11-gcc (GCC) 4.9.3 20150104 (prerelease) 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,cpsr' {standard input}:189: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bic r3,#(1<<7)' {standard input}:190: Error: attempt to use an ARM instruction on a Thumb-only processor -- `orr r3,r0' {standard input}:191: Error: attempt to use an ARM instruction on a Thumb-only processor -- `msr cpsr,r3' {standard input}:192: Error: attempt to use an ARM instruction on a Thumb-only processor -- `add r3,pc,#1' {standard input}:193: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bx r3' {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,cpsr' {standard input}:220: Error: attempt to use an ARM instruction on a Thumb-only processor -- `and r0,#(1<<7)' {standard input}:221: Error: attempt to use an ARM instruction on a Thumb-only processor -- `add r3,pc,#1' {standard input}:222: Error: attempt to use an ARM instruction on a Thumb-only processor -- `bx r3' ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/64542] ARM use of ARM instruction on Thumb-only target 2015-01-08 16:48 [Bug target/64542] New: ARM use of ARM instruction on Thumb-only target joel at gcc dot gnu.org @ 2015-01-08 16:53 ` joel at gcc dot gnu.org 2015-01-08 16:54 ` joel at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: joel at gcc dot gnu.org @ 2015-01-08 16:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542 --- Comment #1 from Joel Sherrill <joel at gcc dot gnu.org> --- Created attachment 34405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34405&action=edit Processed output from RTEMS cpu.c which produces the error Looking at the error message, I am not sure if this is invalid code generated by GCC or conditionally selected by RTEMS. Filing this as a GCC PR and adding RTEMS folks to get a ruling. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/64542] ARM use of ARM instruction on Thumb-only target 2015-01-08 16:48 [Bug target/64542] New: ARM use of ARM instruction on Thumb-only target joel at gcc dot gnu.org 2015-01-08 16:53 ` [Bug target/64542] " joel at gcc dot gnu.org @ 2015-01-08 16:54 ` joel at gcc dot gnu.org 2015-01-08 17:03 ` rearnsha at gcc dot gnu.org 2015-01-08 17:11 ` rearnsha at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: joel at gcc dot gnu.org @ 2015-01-08 16:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542 Joel Sherrill <joel at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |arm-rtems CC| |sebastian.huber@embedded-br | |ains.de --- Comment #2 from Joel Sherrill <joel at gcc dot gnu.org> --- The attachment produces the error with this command line: arm-rtems4.11-gcc -mthumb -march=armv6-m -c -O0 /tmp/arm-thumb-pr64542.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/64542] ARM use of ARM instruction on Thumb-only target 2015-01-08 16:48 [Bug target/64542] New: ARM use of ARM instruction on Thumb-only target joel at gcc dot gnu.org 2015-01-08 16:53 ` [Bug target/64542] " joel at gcc dot gnu.org 2015-01-08 16:54 ` joel at gcc dot gnu.org @ 2015-01-08 17:03 ` rearnsha at gcc dot gnu.org 2015-01-08 17:11 ` rearnsha at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: rearnsha at gcc dot gnu.org @ 2015-01-08 17:03 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542 Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- The testcase contains inline ARM assembly statements. The errors are hardly surprising. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/64542] ARM use of ARM instruction on Thumb-only target 2015-01-08 16:48 [Bug target/64542] New: ARM use of ARM instruction on Thumb-only target joel at gcc dot gnu.org ` (2 preceding siblings ...) 2015-01-08 17:03 ` rearnsha at gcc dot gnu.org @ 2015-01-08 17:11 ` rearnsha at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: rearnsha at gcc dot gnu.org @ 2015-01-08 17:11 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542 --- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Note that armv6-m doesn't support ARM instructions at all, so the .arm directive is meaningless. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-08 17:11 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-01-08 16:48 [Bug target/64542] New: ARM use of ARM instruction on Thumb-only target joel at gcc dot gnu.org 2015-01-08 16:53 ` [Bug target/64542] " joel at gcc dot gnu.org 2015-01-08 16:54 ` joel at gcc dot gnu.org 2015-01-08 17:03 ` rearnsha at gcc dot gnu.org 2015-01-08 17:11 ` rearnsha at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).