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__.
#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. */
/* 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. */