aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2003-06-13 15:20:26 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2003-06-13 15:20:26 +0000
commit39c2da32123d4b403b56d365373f3f16c0dde541 (patch)
tree0f17a55c6c0e99f956196abeaaa80528d2d15904 /gas/config
parent08356d1bbbdcbe50c7edb27bd959f572202cd24a (diff)
downloadgdb-39c2da32123d4b403b56d365373f3f16c0dde541.zip
gdb-39c2da32123d4b403b56d365373f3f16c0dde541.tar.gz
gdb-39c2da32123d4b403b56d365373f3f16c0dde541.tar.bz2
* tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
(FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF, FPU_ARCH_FPA for AOUT. (md_begin): Don't try to guess the floating point architecture from the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 85b2b05..ee1b521 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -134,6 +134,19 @@
#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
@@ -10183,10 +10196,16 @@ md_begin ()
}
else if (mfpu_opt == -1)
{
+#if !(defined (TE_LINUX) || defined (TE_NetBSD))
+ /* Some environments specify a default FPU. If they don't, infer it
+ from the processor. */
if (mcpu_fpu_opt != -1)
mfpu_opt = mcpu_fpu_opt;
else
mfpu_opt = march_fpu_opt;
+#else
+ mfpu_opt = FPU_DEFAULT;
+#endif
}
if (mfpu_opt == -1)