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__.
This commit is contained in:
Christophe Lyon 2019-04-10 15:04:13 +00:00
parent 630808d2a2
commit cc430406ac
2 changed files with 2 additions and 2 deletions

View 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. */

View 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. */