go32-rtems.h, [...] (subtarget_switches): Added -mrtems as a switch.
authorJoel Sherrill <joel@OARcorp.com>
Mon, 1 Sep 1997 14:14:30 +0000 (14:14 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 1 Sep 1997 14:14:30 +0000 (08:14 -0600)
        * 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

15 files changed:
gcc/ChangeLog
gcc/config/i386/go32-rtems.h
gcc/config/i386/rtems.h
gcc/config/i960/i960.h
gcc/config/i960/rtems.h
gcc/config/m68k/rtems.h
gcc/config/mips/rtems64.h
gcc/config/pa/rtems.h
gcc/config/rs6000/rtems.h
gcc/config/rs6000/sysv4.h
gcc/config/sh/rtems.h [new file with mode: 0644]
gcc/config/sh/sh.h
gcc/config/sparc/rtems.h
gcc/configure
gcc/configure.in

index a3373773329796c6e272549b3f0344416f15a70e..783e5ec7b132868594c280c725bfa6c620369983 100644 (file)
@@ -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.
index 282465b249bab61ce92012069122e85bd0d56cb1..d2be80b601175392594730a36c5224693f958ef3 100644 (file)
@@ -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 */
+
index 99c817a14d7428bbea5f5426d58d9df9f2a5d590..ea30a677460ae2b520e0a3aaf37604851b21c776 100644 (file)
@@ -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 */
index 34dc397d03061ddf4d0f89e1157d6b37f09c4eff..6ef1e12561cf24a952dbdde839858b838209e881 100644 (file)
@@ -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.
index 9263027f22c419cf50096ee1f4406c6149122a1b..af5a26f913a06cba723b6f9df4be5d29b6fd22ff 100644 (file)
@@ -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 */
index 8bb921db09d350c439e3bb2ee89d009d0f1779a1..817f05f388357b83b872f6d932362dd26c619884 100644 (file)
@@ -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 */
index d4d8ac0ab3f935cf675a46723fb7b5c27ea4598c..a9547c860bfa98fae90993c9744e86561253ec9f 100644 (file)
@@ -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 */
index 0eba88628c0b09c640e6d120d3a8f64c7ef849ed..784524d6a9026020c75a75ed81c6e8c37c5d1b17 100644 (file)
@@ -28,3 +28,5 @@ Boston, MA 02111-1307, USA.  */
 #undef  SUBTARGET_SWITCHES
 #define SUBTARGET_SWITCHES \
   { "rtems", 0 },
+
+/* end of pa/rtems.h */
index b63b44c57476d4575748bd58598475cfabcc01a2..0bcec52da35f56fc29d6f148ba85d8e0bd02496e 100644 (file)
@@ -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 */
index 294debf3f9883023c80b879cb05949ffbadab4d4..44dd686e0c5791e1088ff80cbc01b541300b3e73 100644 (file)
@@ -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 (file)
index 0000000..5cbdf9b
--- /dev/null
@@ -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 */
index ce5e26a3300b47dace4de2ed83ceeffb556938cf..5210fdc76b438e97dd60f98f9bbb49e8c7f6e4c5 100644 (file)
@@ -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)
index 5e5ea14b1ee6710765a20a1c6e6086b1dd673ee3..5b18619fa2f296bf547d770432f3088e058298b8 100644 (file)
@@ -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 */
index fcf7502db026f2c51c89b45965a540bc70d51dc6..44445181232008ad50476d8dd8ee57a1477057dd 100755 (executable)
@@ -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
                ;;
index c99c7be48f5e03bdb5438ec10ab91a25e45aaf22..7027f31458a0d4284279347ffae1228cccea01b9 100644 (file)
@@ -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
                ;;