Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/arm Fix TARGET_LINKER_EABI...



details:   https://anonhg.NetBSD.org/src/rev/867218eb14eb
branches:  trunk
changeset: 326482:867218eb14eb
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jan 31 07:58:39 2014 +0000

description:
Fix TARGET_LINKER_EABI_SUFFIX to actually use the right suffix.  Since this
now depends on the default float-abi, pick from two strings to select the
right suffix.

diffstat:

 external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 33bd8f98e764 -r 867218eb14eb external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h       Fri Jan 31 07:56:18 2014 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h       Fri Jan 31 07:58:39 2014 +0000
@@ -32,9 +32,12 @@
 #define ARM_EABI_UNWIND_TABLES \
   ((!USING_SJLJ_EXCEPTIONS && flag_exceptions) || flag_unwind_tables)
 
-#define TARGET_LINKER_EABI_SUFFIX "%{!mabi=apcs-gnu:%{!mabi=atpcs:_nbsd_eabi}}"
-#define TARGET_LINKER_BIG_EMULATION "armelfb%(linker_eabi_suffix)"
-#define TARGET_LINKER_LITTLE_EMULATION "armelf%(linker_eabi_suffix)"
+#define TARGET_LINKER_EABI_SUFFIX \
+    (TARGET_DEFAULT_FLOAT_ABI == ARM_FLOAT_ABI_SOFT \
+     ? "%{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=hard:_eabihf;:_eabi}}}" \
+     : "%{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=soft:_eabi;:_eabihf}}}")
+#define TARGET_LINKER_BIG_EMULATION "armelfb_nbsd%(linker_eabi_suffix)"
+#define TARGET_LINKER_LITTLE_EMULATION "armelf_nbsd%(linker_eabi_suffix)"
 
 /* TARGET_BIG_ENDIAN_DEFAULT is set in
    config.gcc for big endian configurations.  */



Home | Main Index | Thread Index | Old Index