This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
rtems patch for egcs-970901
- To: egcs at cygnus dot com
- Subject: rtems patch for egcs-970901
- From: Joel Sherrill <joel at OARcorp dot com>
- Date: Wed, 3 Sep 1997 09:36:17 -0500 (CDT)
This patch removes the SUBTARGET_SWITCHES for -mrtems. When using user
defined specs files, the proper way to do it (thanks Michael Meissner) is
to use -qNAME. This will not cause cc1 to complain and lets the user
extend the specs file. Each RTEMS board support package includes a specs
extensions file to specify linker options, special libraries, etc. This
patch makes the invocation correct based upon the current way -specs
works.
--joel
Wed Sep 3 09:28:50 CDT 1997 Joel Sherrill (joel@OARcorp.com)
* i386/go32-rtems.h, i386/rtems.h, i960/rtems.h, m68k/rtems.h,
mips/rtems64.h, pa/rtems.h, rs6000/rtems.h, sh/rtems.h,
sparc/rtems.h (subtarget_switches): Removed SUBTARGET_SWITCHES
definitions. Use -qrtems instead of -mrtems.
diff -r -c tmp/egcs-970901/gcc/config/i386/go32-rtems.h egcs-970901/gcc/config/i386/go32-rtems.h
*** tmp/egcs-970901/gcc/config/i386/go32-rtems.h Mon Sep 1 09:14:07 1997
--- egcs-970901/gcc/config/i386/go32-rtems.h Wed Sep 3 09:19:32 1997
***************
*** 31,39 ****
#define CPP_PREDEFINES "-Dunix -Di386 -DGO32 -DMSDOS -Drtems -D__rtems__ \
-Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Asystem(rtems)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of i386/go32-rtems.h */
--- 31,35 ----
diff -r -c tmp/egcs-970901/gcc/config/i386/rtems.h egcs-970901/gcc/config/i386/rtems.h
*** tmp/egcs-970901/gcc/config/i386/rtems.h Mon Sep 1 09:14:09 1997
--- egcs-970901/gcc/config/i386/rtems.h Wed Sep 3 09:19:38 1997
***************
*** 28,35 ****
#define CPP_PREDEFINES "-Di386 -Drtems -D__rtems__ \
-Asystem(rtems) -Acpu(i386) -Amachine(i386)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of i386/rtems.h */
--- 28,31 ----
diff -r -c tmp/egcs-970901/gcc/config/i960/rtems.h egcs-970901/gcc/config/i960/rtems.h
*** tmp/egcs-970901/gcc/config/i960/rtems.h Mon Sep 1 09:14:11 1997
--- egcs-970901/gcc/config/i960/rtems.h Wed Sep 3 09:19:46 1997
***************
*** 28,35 ****
#define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -Drtems -D__rtems__ \
-Asystem(rtems) -Acpu(i960) -Amachine(i960)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of i960/rtems.h */
--- 28,31 ----
diff -r -c tmp/egcs-970901/gcc/config/m68k/rtems.h egcs-970901/gcc/config/m68k/rtems.h
*** tmp/egcs-970901/gcc/config/m68k/rtems.h Mon Sep 1 09:14:16 1997
--- egcs-970901/gcc/config/m68k/rtems.h Wed Sep 3 09:19:52 1997
***************
*** 27,34 ****
#define CPP_PREDEFINES "-Dmc68000 -Drtems -D__rtems__ \
-Asystem(rtems) -Acpu(mc68000) -Acpu(m68k) -Amachine(m68k)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of m68k/rtems.h */
--- 27,30 ----
diff -r -c tmp/egcs-970901/gcc/config/mips/rtems64.h egcs-970901/gcc/config/mips/rtems64.h
*** tmp/egcs-970901/gcc/config/mips/rtems64.h Mon Sep 1 09:14:18 1997
--- egcs-970901/gcc/config/mips/rtems64.h Wed Sep 3 09:20:05 1997
***************
*** 28,35 ****
#define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000 \
-Drtems -D__rtems__ -Asystem(rtems)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of mips/rtems64.h */
--- 28,31 ----
diff -r -c tmp/egcs-970901/gcc/config/pa/rtems.h egcs-970901/gcc/config/pa/rtems.h
*** tmp/egcs-970901/gcc/config/pa/rtems.h Mon Sep 1 09:14:21 1997
--- egcs-970901/gcc/config/pa/rtems.h Wed Sep 3 09:20:07 1997
***************
*** 25,32 ****
#define CPP_PREDEFINES "-Dhppa -DPWB -Acpu(hppa) -Amachine(hppa) \
-Drtems -D__rtems__ -Asystem(rtems)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of pa/rtems.h */
--- 25,28 ----
diff -r -c tmp/egcs-970901/gcc/config/rs6000/rtems.h egcs-970901/gcc/config/rs6000/rtems.h
*** tmp/egcs-970901/gcc/config/rs6000/rtems.h Mon Sep 1 09:14:23 1997
--- egcs-970901/gcc/config/rs6000/rtems.h Wed Sep 3 09:20:11 1997
***************
*** 28,37 ****
#define CPP_PREDEFINES "-DPPC -Drtems -D__rtems__ \
-Asystem(rtems) -Acpu(powerpc) -Amachine(powerpc)"
- /* extend the SUBTARGET_SWITCHES in rs6000/sysv4.h */
-
- #undef EXTRA_SUBTARGET_SWITCHES
- #define EXTRA_SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of powerpc-rtems.h */
--- 28,31 ----
diff -r -c tmp/egcs-970901/gcc/config/sh/rtems.h egcs-970901/gcc/config/sh/rtems.h
*** tmp/egcs-970901/gcc/config/sh/rtems.h Mon Sep 1 09:14:26 1997
--- egcs-970901/gcc/config/sh/rtems.h Wed Sep 3 09:20:14 1997
***************
*** 28,35 ****
#define CPP_PREDEFINES "-D__sh__ -D__ELF__ -Drtems -D__rtems__ \
-Asystem(rtems) -Acpu(sh) -Amachine(sh)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of sparc/rtems.h */
--- 28,31 ----
diff -r -c tmp/egcs-970901/gcc/config/sparc/rtems.h egcs-970901/gcc/config/sparc/rtems.h
*** tmp/egcs-970901/gcc/config/sparc/rtems.h Mon Sep 1 09:14:30 1997
--- egcs-970901/gcc/config/sparc/rtems.h Wed Sep 3 09:20:18 1997
***************
*** 28,35 ****
#define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -Drtems -D__rtems__ \
-Asystem(rtems) -Acpu(sparc) -Amachine(sparc)"
- #undef SUBTARGET_SWITCHES
- #define SUBTARGET_SWITCHES \
- { "rtems", 0 },
-
/* end of sparc/rtems.h */
--- 28,31 ----