diff options
author | Richard Earnshaw <erich@gnu.org> | 1996-02-12 16:52:43 +0000 |
---|---|---|
committer | Richard Earnshaw <erich@gnu.org> | 1996-02-12 16:52:43 +0000 |
commit | e378e7e94e3e2112163a8bc5137f0dc8e00a2e11 (patch) | |
tree | 322cc829848dc04841ef4cd8c5ed468dc8d5b7b8 | |
parent | 3dafc5c376b39bdf5202807d5f8c209e34faea7a (diff) | |
download | gcc-e378e7e94e3e2112163a8bc5137f0dc8e00a2e11.zip gcc-e378e7e94e3e2112163a8bc5137f0dc8e00a2e11.tar.gz gcc-e378e7e94e3e2112163a8bc5137f0dc8e00a2e11.tar.bz2 |
semi.h (CPP_SPEC): Define __ARMEB__...
* arm/semi.h (CPP_SPEC): Define __ARMEB__, __ARMEL__, and
__ARMWEL__ depending on the endian flags passed to the compiler.
(LINK_SPEC): Pass -EB to the linker if compiling for big-endian
mode.
From-SVN: r11213
-rw-r--r-- | gcc/config/arm/semi.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/config/arm/semi.h b/gcc/config/arm/semi.h index c2e7031..57af658 100644 --- a/gcc/config/arm/semi.h +++ b/gcc/config/arm/semi.h @@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */ #define LIB_SPEC "-lc" -#define LINK_SPEC "-X" - #define CPP_PREDEFINES \ "-Darm -Dsemi -Acpu(arm) -Amachine(arm)" @@ -37,8 +35,15 @@ Boston, MA 02111-1307, USA. */ %{msoft-float:-D__SOFTFP__} \ %{mhard-float:-U__SOFTFP__} \ %{!mhard-float: %{!msoft-float:-U__SOFTFP__}} \ +%{mbig-endian:-D__ARMEB__ %{mwords-little-endian:-D__ARMWEL__}} \ +%{mbe:-D__ARMEB__ %{mwords-little-endian:-D__ARMWEL__}} \ +%{!mbe: %{!mbig-endian:-D__ARMEL__}} \ " +#define ASM_SPEC "%{mbig-endian:-EB}" + +#define LINK_SPEC "%{mbig-endian:-EB} -X" + #define TARGET_VERSION fputs (" (ARM/semi-hosted)", stderr); #define TARGET_DEFAULT ARM_FLAG_APCS_32 |