#2231 closed defect (fixed)

arm cpu.c selects non-thumb code for Thumb only build

Reported by: Joel Sherrill Owned by: Sebastian Huber
Priority: normal Milestone: 4.11
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Reported initially as gcc PR64542 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64542) but rather clearly a problem in the selection of the inline assembly. The GCC PR has an attachment which is after the incorrect inline asm is selected.

arm-rtems4.11-gcc -mthumb -march=armv6-m -c -O0 /tmp/arm-thumb-pr64542.c

It looks like the wrong code in arm_interrupt_disable (and likely enable) is selected.

RTEMS was configured as:

/users/joel/test-gcc/rtems/configure --target=arm-rtems4.11 --enable-multilib --enable-ada --enable-posix --enable-networking --enable-maintainer-mode --disable-tests --prefix=/users/joel/test-gcc/install-4.9-branch

Change History (1)

comment:1 Changed on 01/09/15 at 13:09:50 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: newclosed

In 5759510c9645bb0dd41e97da8ec3ac95595ebf66/rtems:

arm: Fix compile error for ARMv6-M multilib

ARMv6-M is not supported since we cannot directly use the ARMv7-M code
due to some inline assembler statements.

Close #2231.

Note: See TracTickets for help on using tickets.