This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch,committed,arm] RTEMS: pass -msoft-float to as as default


Hi,

I've committed the patch below to GCC-CVS/trunk.

It causes GCC to explicitly pass -msoft-float to as if neither
 -mhard-float nor -msoft-float is given.
This is a work-around to binutils-2.15 using -mhard-float as implicit
default, while GCC-4.0 implicitly defaults to -msoft-float.


Ralf

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.7402
diff -u -r2.7402 ChangeLog
--- ChangeLog	7 Feb 2005 05:13:06 -0000	2.7402
+++ ChangeLog	7 Feb 2005 05:56:27 -0000
@@ -1,5 +1,10 @@
 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
 
+	* config/arm/t-rtems (SUBTARGET_EXTRA_ASM_SPEC): 
+	Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
+
+2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
+
 	* config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
 
 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
Index: config/arm/rtems-elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/rtems-elf.h,v
retrieving revision 1.10
diff -u -r1.10 rtems-elf.h
--- config/arm/rtems-elf.h	18 May 2003 09:46:08 -0000	1.10
+++ config/arm/rtems-elf.h	7 Feb 2005 05:56:27 -0000
@@ -29,3 +29,11 @@
 	builtin_define ("__rtems__");		\
 	builtin_assert ("system=rtems");	\
     } while (0)
+
+/*
+ * The default in gcc now is soft-float, but gcc misses it to 
+ * pass it to the assembler.
+ */
+#undef SUBTARGET_EXTRA_ASM_SPEC
+#define SUBTARGET_EXTRA_ASM_SPEC "\
+  %{!mhard-float: %{!msoft-float:-mfpu=softfpa}}"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]