OSDN Git Service

* tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
authorrearnsha <rearnsha>
Fri, 13 Jun 2003 15:20:25 +0000 (15:20 +0000)
committerrearnsha <rearnsha>
Fri, 13 Jun 2003 15:20:25 +0000 (15:20 +0000)
(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.

gas/ChangeLog
gas/config/tc-arm.c

index 3332f0b..83d8d8e 100644 (file)
@@ -1,3 +1,11 @@
+2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
+
+       * 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.
+
 2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
 
        * configure.in: Add i386-netbsd-gnu target.
index 85b2b05..ee1b521 100644 (file)
 #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)