Pass -mno-fpu onto gas unless -mhard-float is specified.
authorNick Clifton <nickc@cambridge.redhat.com>
Wed, 19 Dec 2001 15:27:22 +0000 (15:27 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 19 Dec 2001 15:27:22 +0000 (15:27 +0000)
From-SVN: r48179

gcc/ChangeLog
gcc/config/arm/xscale-elf.h

index f26f578cab59269ffc0f7e1e16832693ba1ee3da..85b6bd7437e4bc6f942fdfe83b21f1b109ee784c 100644 (file)
@@ -1,5 +1,9 @@
 2001-12-19  Nick Clifton  <nickc@cambridge.redhat.com>
 
+       * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Pass
+       -mno-fpu onto gas unless -mhard-float is specified.
+       (MULTILIB_DEFAULTS): Include msoft-float.
+
        * config/arm/t-xscale-coff (EXTRA_MULTILIB_PARTS): Remove definition.
 
        * config/arm/coff.h (SUPPORTS_INIT_PRIORITY): Define (to false).
index 72615dac9e4722ade26f54f589175fad1baccfe2..b1ce04e103e2c12185708254f787c66eb3de05f0 100644 (file)
@@ -28,9 +28,9 @@ Boston, MA 02111-1307, USA.  */
 #define SUBTARGET_CPU_DEFAULT          TARGET_CPU_xscale
 #endif
 
-#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mxscale}"
+#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mxscale} %{!mhard-float:-mno-fpu}"
 
 #ifndef MULTILIB_DEFAULTS
 #define MULTILIB_DEFAULTS \
-  { "mlittle-endian", "mno-thumb-interwork", "marm" }
+  { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
 #endif