diff options
author | Joel Sherrill <joel@OARcorp.com> | 1997-09-01 14:14:30 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-09-01 08:14:30 -0600 |
commit | 5d84b57e6fbd46af2fb2180114eba35c2ea01aab (patch) | |
tree | 5670358070f1da006cef914f40babdd68c070799 /gcc | |
parent | 2599dcc74ab14923fef52293afad9f5fe2d30e9c (diff) | |
download | gcc-5d84b57e6fbd46af2fb2180114eba35c2ea01aab.zip gcc-5d84b57e6fbd46af2fb2180114eba35c2ea01aab.tar.gz gcc-5d84b57e6fbd46af2fb2180114eba35c2ea01aab.tar.bz2 |
go32-rtems.h, [...] (subtarget_switches): Added -mrtems as a switch.
* i386/go32-rtems.h, i386/rtems.h, i960/rtems.h,
m68k/rtems.h, mips/rtems64.h, pa/rtems.h, rs6000/rtems.h,
sparc/rtems.h (subtarget_switches): Added -mrtems as a switch.
* i960/i960.h: Added SUBTARGET_SWITCHES macro.
* rs6000/sysv4.h (extra_subtarget_switches): Added new
macro EXTRA_SUBTARGET_SWITCHES.
* configure.in (sh*-*-rtems*): New target.
* sh/rtems.h: New file.
* sh/sh.h: Added SUBTARGET_SWITCHES macro.
* configure: Rebuilt.
From-SVN: r15006
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/config/i386/go32-rtems.h | 7 | ||||
-rw-r--r-- | gcc/config/i386/rtems.h | 6 | ||||
-rw-r--r-- | gcc/config/i960/i960.h | 1 | ||||
-rw-r--r-- | gcc/config/i960/rtems.h | 6 | ||||
-rw-r--r-- | gcc/config/m68k/rtems.h | 6 | ||||
-rw-r--r-- | gcc/config/mips/rtems64.h | 6 | ||||
-rw-r--r-- | gcc/config/pa/rtems.h | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rtems.h | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/sysv4.h | 4 | ||||
-rw-r--r-- | gcc/config/sh/rtems.h | 35 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 4 | ||||
-rw-r--r-- | gcc/config/sparc/rtems.h | 6 | ||||
-rwxr-xr-x | gcc/configure | 5 | ||||
-rw-r--r-- | gcc/configure.in | 5 |
15 files changed, 106 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a337377..783e5ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +Mon Sep 1 08:04:07 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, + sparc/rtems.h (subtarget_switches): Added -mrtems as a switch. + * i960/i960.h: Added SUBTARGET_SWITCHES macro. + * rs6000/sysv4.h (extra_subtarget_switches): Added new + macro EXTRA_SUBTARGET_SWITCHES. + * configure.in (sh*-*-rtems*): New target. + * sh/rtems.h: New file. + * sh/sh.h: Added SUBTARGET_SWITCHES macro. + * configure: Rebuilt. + Sat Aug 30 22:54:26 1997 Jim Wilson <wilson@cygnus.com> * unroll.c (calculate_giv_inc): Handle increment with code PLUS. diff --git a/gcc/config/i386/go32-rtems.h b/gcc/config/i386/go32-rtems.h index 282465b..d2be80b 100644 --- a/gcc/config/i386/go32-rtems.h +++ b/gcc/config/i386/go32-rtems.h @@ -30,3 +30,10 @@ Boston, MA 02111-1307, USA. */ #endif #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 */ + diff --git a/gcc/config/i386/rtems.h b/gcc/config/i386/rtems.h index 99c817a..ea30a67 100644 --- a/gcc/config/i386/rtems.h +++ b/gcc/config/i386/rtems.h @@ -28,4 +28,8 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-Di386 -Drtems -D__rtems__ \ -Asystem(rtems) -Acpu(i386) -Amachine(i386)" -/* end of i386-rtems.h */ +#undef SUBTARGET_SWITCHES +#define SUBTARGET_SWITCHES \ + { "rtems", 0 }, + +/* end of i386/rtems.h */ diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index 34dc397..6ef1e12 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -269,6 +269,7 @@ extern int target_flags; {"no-old-align", -(TARGET_FLAG_OLD_ALIGN|TARGET_FLAG_STRICT_ALIGN)}, \ {"link-relax", 0}, \ {"no-link-relax", 0}, \ + SUBTARGET_SWITCHES \ { "", TARGET_DEFAULT}} /* Override conflicting target switch options. diff --git a/gcc/config/i960/rtems.h b/gcc/config/i960/rtems.h index 9263027..af5a26f 100644 --- a/gcc/config/i960/rtems.h +++ b/gcc/config/i960/rtems.h @@ -28,4 +28,8 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -Drtems -D__rtems__ \ -Asystem(rtems) -Acpu(i960) -Amachine(i960)" -/* end of i960-rtems.h */ +#undef SUBTARGET_SWITCHES +#define SUBTARGET_SWITCHES \ + { "rtems", 0 }, + +/* end of i960/rtems.h */ diff --git a/gcc/config/m68k/rtems.h b/gcc/config/m68k/rtems.h index 8bb921d..817f05f 100644 --- a/gcc/config/m68k/rtems.h +++ b/gcc/config/m68k/rtems.h @@ -27,4 +27,8 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-Dmc68000 -Drtems -D__rtems__ \ -Asystem(rtems) -Acpu(mc68000) -Acpu(m68k) -Amachine(m68k)" -/* end of m68k-rtems.h */ +#undef SUBTARGET_SWITCHES +#define SUBTARGET_SWITCHES \ + { "rtems", 0 }, + +/* end of m68k/rtems.h */ diff --git a/gcc/config/mips/rtems64.h b/gcc/config/mips/rtems64.h index d4d8ac0..a9547c8 100644 --- a/gcc/config/mips/rtems64.h +++ b/gcc/config/mips/rtems64.h @@ -28,4 +28,8 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000 \ -Drtems -D__rtems__ -Asystem(rtems)" -/* end of rtems64.h */ +#undef SUBTARGET_SWITCHES +#define SUBTARGET_SWITCHES \ + { "rtems", 0 }, + +/* end of mips/rtems64.h */ diff --git a/gcc/config/pa/rtems.h b/gcc/config/pa/rtems.h index 0eba886..784524d 100644 --- a/gcc/config/pa/rtems.h +++ b/gcc/config/pa/rtems.h @@ -28,3 +28,5 @@ Boston, MA 02111-1307, USA. */ #undef SUBTARGET_SWITCHES #define SUBTARGET_SWITCHES \ { "rtems", 0 }, + +/* end of pa/rtems.h */ diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h index b63b44c..0bcec52 100644 --- a/gcc/config/rs6000/rtems.h +++ b/gcc/config/rs6000/rtems.h @@ -28,6 +28,10 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-DPPC -Drtems -D__rtems__ \ -Asystem(rtems) -Acpu(powerpc) -Amachine(powerpc)" -/* rtems is in the SUBTARGET_SWITCHES in rs6000/sysv4.h */ +/* extend the SUBTARGET_SWITCHES in rs6000/sysv4.h */ + +#undef EXTRA_SUBTARGET_SWITCHES +#define EXTRA_SUBTARGET_SWITCHES \ + { "rtems", 0 }, /* end of powerpc-rtems.h */ diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 294debf..44dd686 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -95,8 +95,12 @@ extern enum rs6000_sdata_type rs6000_sdata; { "emb", 0 }, \ { "solaris-cclib", 0 }, \ { "shlib", 0 }, \ + EXTRA_SUBTARGET_SWITCHES \ { "newlib", 0 }, +/* This is meant to be redefined in the host dependent files */ +#define EXTRA_SUBTARGET_SWITCHES + /* Default ABI to use */ #define RS6000_ABI_NAME "sysv" diff --git a/gcc/config/sh/rtems.h b/gcc/config/sh/rtems.h new file mode 100644 index 0000000..5cbdf9b --- /dev/null +++ b/gcc/config/sh/rtems.h @@ -0,0 +1,35 @@ +/* Definitions for rtems targetting a SH using elf. + + Copyright (C) 1996 Free Software Foundation, Inc. + Contributed by Joel Sherrill (joel@OARcorp.com). + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#include "sh/elf.h" + +/* Specify predefined symbols in preprocessor. */ + +#undef CPP_PREDEFINES +#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 */ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index ce5e26a..5210fdc 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -144,9 +144,13 @@ extern int target_flags; {"padstruct", PADSTRUCT_BIT}, \ {"relax", RELAX_BIT}, \ {"space", SPACE_BIT}, \ + SUBTARGET_SWITCHES \ {"", TARGET_DEFAULT} \ } +/* This are meant to be redefined in the host dependent files */ +#define SUBTARGET_SWITCHES + #define TARGET_DEFAULT (0) #define PRESERVE_DEATH_INFO_REGNO_P(regno) (TARGET_RELAX || optimize) diff --git a/gcc/config/sparc/rtems.h b/gcc/config/sparc/rtems.h index 5e5ea14..5b18619 100644 --- a/gcc/config/sparc/rtems.h +++ b/gcc/config/sparc/rtems.h @@ -28,4 +28,8 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -Drtems -D__rtems__ \ -Asystem(rtems) -Acpu(sparc) -Amachine(sparc)" -/* end of sparc-rtems.h */ +#undef SUBTARGET_SWITCHES +#define SUBTARGET_SWITCHES \ + { "rtems", 0 }, + +/* end of sparc/rtems.h */ diff --git a/gcc/configure b/gcc/configure index fcf7502..4444518 100755 --- a/gcc/configure +++ b/gcc/configure @@ -3667,6 +3667,11 @@ for machine in $build $host $target; do tm_file=sh/elf.h float_format=sh ;; + sh-*-rtems*) + tmake_file="sh/t-sh t-rtems" + tm_file=sh/rtems.h + float_format=sh + ;; sh-*-*) float_format=sh ;; diff --git a/gcc/configure.in b/gcc/configure.in index c99c7be..7027f31 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -2286,6 +2286,11 @@ for machine in $build $host $target; do tm_file=sh/elf.h float_format=sh ;; + sh-*-rtems*) + tmake_file="sh/t-sh t-rtems" + tm_file=sh/rtems.h + float_format=sh + ;; sh-*-*) float_format=sh ;; |