aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-12-03 01:22:15 +0000
committerMark Mitchell <mark@codesourcery.com>2004-12-03 01:22:15 +0000
commitc820d41869a60c8b043d4cfe104b0df39d1eb650 (patch)
tree8d7462ed0d476fcdcc6aa9e39d572f1753e4c20a /gas/config
parent2b0210eb4094c59366fd1d8eeca9df0b69df821e (diff)
downloadgdb-c820d41869a60c8b043d4cfe104b0df39d1eb650.zip
gdb-c820d41869a60c8b043d4cfe104b0df39d1eb650.tar.gz
gdb-c820d41869a60c8b043d4cfe104b0df39d1eb650.tar.bz2
* Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
* configure.in: Use it for arm*-*-linux-gnueabi*. * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT. * config/te-armlinuxeabi.h: New file. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * doc/Makefile.in: Regenerated.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c30
-rw-r--r--gas/config/te-armlinuxeabi.h4
2 files changed, 18 insertions, 16 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 6c13637..ff2e4aa 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -115,23 +115,21 @@ enum arm_float_abi
#endif
#endif
-#ifdef TE_LINUX
-#define FPU_DEFAULT FPU_ARCH_FPA
-#endif
-
-#ifdef TE_NetBSD
-#ifdef OBJ_ELF
-#define FPU_DEFAULT FPU_ARCH_VFP /* Soft-float, but VFP order. */
-#else
-/* Legacy a.out format. */
-#define FPU_DEFAULT FPU_ARCH_FPA /* Soft-float, but FPA order. */
-#endif
-#endif
-
-/* For backwards compatibility we default to the FPA. */
#ifndef FPU_DEFAULT
-#define FPU_DEFAULT FPU_ARCH_FPA
-#endif
+# ifdef TE_LINUX
+# define FPU_DEFAULT FPU_ARCH_FPA
+# elif defined (TE_NetBSD)
+# ifdef OBJ_ELF
+# define FPU_DEFAULT FPU_ARCH_VFP /* Soft-float, but VFP order. */
+# else
+ /* Legacy a.out format. */
+# define FPU_DEFAULT FPU_ARCH_FPA /* Soft-float, but FPA order. */
+# endif
+# else
+ /* For backwards compatibility, default to FPA. */
+# define FPU_DEFAULT FPU_ARCH_FPA
+# endif
+#endif /* ifndef FPU_DEFAULT */
#define streq(a, b) (strcmp (a, b) == 0)
#define skip_whitespace(str) while (*(str) == ' ') ++(str)
diff --git a/gas/config/te-armlinuxeabi.h b/gas/config/te-armlinuxeabi.h
new file mode 100644
index 0000000..e6abf01
--- /dev/null
+++ b/gas/config/te-armlinuxeabi.h
@@ -0,0 +1,4 @@
+#include "te-linux.h"
+
+/* The EABI requires the use of VFP. */
+#define FPU_DEFAULT FPU_ARCH_VFP_V2