]> sourceware.org Git - newlib-cygwin.git/commitdiff
Include code in trap.S for APCS only.
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 10 Apr 2019 15:04:13 +0000 (15:04 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 11 Apr 2019 14:20:21 +0000 (14:20 +0000)
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__.

libgloss/arm/trap.S
newlib/libc/sys/arm/trap.S

index d854b57bb5df585d0bb8bb7baf91c1d9325ece7a..845ad017319ee8d0ba6e900fe94ee9724bba1c6e 100644 (file)
@@ -1,6 +1,6 @@
 #include "arm.h"
         /* Run-time exception support */
-#ifndef PREFER_THUMB
+#ifndef __ARM_EABI__
 #include "swi.h"
 
 /* .text is used instead of .section .text so it works with arm-aout too.  */
index 21b6937f91947ec2afce2f278c2478e7290b3b90..681b3dbe027fe6c1fabe6b70e38706263266c306 100644 (file)
@@ -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.  */
This page took 0.037058 seconds and 5 git commands to generate.