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]

sparc-rtems patches for gcc 3.0 CVS



This fixes the same -Acpu/Amachine re-assert I just
posted for sparc-elf.  It also defines _SOFT_FLOAT
when soft-float is enabled.

Please apply it to both the mainline and 3.0 branch.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985
2001-06-19      Joel Sherrill <joel@OARcorp.com>

        * config/sparc/rtems.: Remove redundant -Acpu and -Amachine.h
	* config/sparc/rtemself.h: Remove redundant -Acpu and -Amachine.
	Corrected header to say ELF not a.out. 
	* config/sparc/sparc.h: If -msoft-float, then make sure _SOFT_FLOAT
	is defined so one can avoid hardware FP instructions.

diff -uNr /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config/sparc/rtems.h gcc-3.0-20010614/gcc/config/sparc/rtems.h
--- /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config/sparc/rtems.h	Thu Nov  2 17:29:13 2000
+++ gcc-3.0-20010614/gcc/config/sparc/rtems.h	Mon Jun 18 10:25:38 2001
@@ -25,7 +25,7 @@
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -Drtems -D__rtems__ \
-  -Asystem=rtems -Acpu=sparc -Amachine=sparc"
+  -Asystem=rtems"
 
 /* Generate calls to memcpy, memcmp and memset.  */
 #ifndef TARGET_MEM_FUNCTIONS
diff -uNr /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config/sparc/rtemself.h gcc-3.0-20010614/gcc/config/sparc/rtemself.h
--- /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config/sparc/rtemself.h	Mon Jan  1 07:19:20 2001
+++ gcc-3.0-20010614/gcc/config/sparc/rtemself.h	Tue Jun 19 09:22:48 2001
@@ -1,4 +1,4 @@
-/* Definitions for rtems targeting a SPARC using a.out.
+/* Definitions for rtems targeting a SPARC using ELF.
    Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
    Contributed by Joel Sherrill (joel@OARcorp.com).
 
@@ -23,7 +23,7 @@
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -Drtems -D__rtems__ \
-  -Asystem=rtems -Acpu=sparc -Amachine=sparc"
+  -Asystem=rtems"
 
 /* Generate calls to memcpy, memcmp and memset.  */
 #ifndef TARGET_MEM_FUNCTIONS
diff -uNr /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config/sparc/sparc.h gcc-3.0-20010614/gcc/config/sparc/sparc.h
--- /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config/sparc/sparc.h	Sun May 13 02:10:12 2001
+++ gcc-3.0-20010614/gcc/config/sparc/sparc.h	Fri Jun 15 08:24:02 2001
@@ -223,6 +223,7 @@
 /* Common CPP definitions used by CPP_SPEC amongst the various targets
    for handling -mcpu=xxx switches.  */
 #define CPP_CPU_SPEC "\
+%{msoft-float:-D_SOFT_FLOAT} \
 %{mcypress:} \
 %{msparclite:-D__sparclite__} \
 %{mf930:-D__sparclite__} %{mf934:-D__sparclite__} \

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