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/config/sh/rtems.h | |
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/config/sh/rtems.h')
-rw-r--r-- | gcc/config/sh/rtems.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 */ |