diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-04-10 15:04:13 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2019-04-11 14:20:21 +0000 |
commit | cc430406ac09d99570b5218668f2bb00371ae983 (patch) | |
tree | 597da24312e919d347534bf3ddf61658decb1550 /newlib | |
parent | 630808d2a2865634df3f54cec403a058511596e7 (diff) | |
download | newlib-cc430406ac09d99570b5218668f2bb00371ae983.zip newlib-cc430406ac09d99570b5218668f2bb00371ae983.tar.gz newlib-cc430406ac09d99570b5218668f2bb00371ae983.tar.bz2 |
Include code in trap.S for APCS only.
The code in trap.S is to support the old APCS chunked stack variant,
which dates back to the Acorn days, so put it under #ifndef
__ARM_EABI__.
* libgloss/arm/trap.S: Use __ARM_EABI rather than PREFER_THUMB.
* newlib/libc/sys/arm/trap.S: Use __ARM_EABI rather than
__thumb2__.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/sys/arm/trap.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/sys/arm/trap.S b/newlib/libc/sys/arm/trap.S index 21b6937..681b3db 100644 --- a/newlib/libc/sys/arm/trap.S +++ b/newlib/libc/sys/arm/trap.S @@ -1,5 +1,5 @@ /* Run-time exception support */ -#if !defined(__thumb2__) +#ifndef __ARM_EABI__ #include "swi.h" /* .text is used instead of .section .text so it works with arm-aout too. */ |