]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rtemself.h: Updated to keep in sync with config/i386/linux.h.
authorJoel Sherrill <joel@OARcorp.com>
Thu, 9 Jul 1998 00:37:05 +0000 (00:37 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 9 Jul 1998 00:37:05 +0000 (18:37 -0600)
        * config/i386/rtemself.h: Updated to keep in sync with
        config/i386/linux.h.
        * configure.in: Added sh-rtemself.
        * configure: Rebuilt.
        * config/sh/rtems.h: Removed -D__ELF__ since it is now COFF.
        * config/sh/rtemself.h: New file.
        * config/rs6000/rtems.h: Defined STARTFILE_DEFAULT_SPEC.

Co-Authored-By: Ralf Corsepius <corsepiu@faw.uni-ulm.de>
From-SVN: r21025

gcc/ChangeLog
gcc/config/i386/rtemself.h
gcc/config/rs6000/rtems.h
gcc/config/sh/rtems.h
gcc/config/sh/rtemself.h [new file with mode: 0644]
gcc/configure
gcc/configure.in

index bc58a67419e9316e2dab66352265bb9ad2e17b80..dff9842aa8f5b9395e998cf1da51cd057f5e5e67 100644 (file)
@@ -1,3 +1,16 @@
+Thu Jul  9 01:30:37 1998  Joel Sherrill  <joel@OARcorp.com>
+                         Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+       * config/i386/rtemself.h: Updated to keep in sync with
+       config/i386/linux.h.
+
+       * configure.in: Added sh-rtemself.
+       * configure: Rebuilt.
+       * config/sh/rtems.h: Removed -D__ELF__ since it is now COFF.
+       * config/sh/rtemself.h: New file.
+
+       * config/rs6000/rtems.h: Defined STARTFILE_DEFAULT_SPEC.
+
 Wed Jul  8 21:43:14 1998  Jeffrey A Law  (law@cygnus.com)
 
        * configure.in: Check if the assembler supports ".balign" and
index 6486102abdc9a7510eef41243d861cc1cbe4ca13..d9d97337aa954a7386cbe1adc4c1fbab82bc0345 100644 (file)
@@ -41,12 +41,12 @@ Boston, MA 02111-1307, USA.  */
    This is only used for PIC code.  See comments by the `casesi' insn in
    i386.md for an explanation of the expression this outputs. */
 #undef ASM_OUTPUT_ADDR_DIFF_ELT
-#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
+#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
   fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
 
 /* Indicate that jump tables go in the text section.  This is
    necessary when compiling PIC code.  */
-#define JUMP_TABLES_IN_TEXT_SECTION
+#define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
 
 /* Copy this from the svr4 specifications... */
 /* Define the register numbers to be used in Dwarf debugging information.
index 83073b072e7711f94019bf1fd9c3d0a372b30a5a..bf14072f0d3d5802b95cc8428f4e59da4e4a88ad 100644 (file)
@@ -32,4 +32,7 @@ Boston, MA 02111-1307, USA.  */
 #define TARGET_MEM_FUNCTIONS
 #endif
 
+#undef STARTFILE_DEFAULT_SPEC
+#define STARTFILE_DEFAULT_SPEC "crt0.o%s"
+
 /* end of rs6000/rtems.h */
index 1b2242bf0a4b6842aaa270280ffac26583d9cb14..3e3fc7b8ca206ea9dd4060b2e156ec6274b02c54 100644 (file)
@@ -1,4 +1,4 @@
-/* Definitions for rtems targeting a SH using elf.
+/* Definitions for rtems targeting a SH using COFF.
    Copyright (C) 1997 Free Software Foundation, Inc.
    Contributed by Joel Sherrill (joel@OARcorp.com).
 
@@ -24,10 +24,12 @@ Boston, MA 02111-1307, USA.  */
 /* Specify predefined symbols in preprocessor.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__sh__ -D__ELF__ -Drtems -D__rtems__ \
+#define CPP_PREDEFINES "-D__sh__ -Drtems -D__rtems__ \
   -Asystem(rtems) -Acpu(sh) -Amachine(sh)"
 
 /* Generate calls to memcpy, memcmp and memset.  */
 #ifndef TARGET_MEM_FUNCTIONS
 #define TARGET_MEM_FUNCTIONS
 #endif
+
+/* end of sh/rtems.h */
diff --git a/gcc/config/sh/rtemself.h b/gcc/config/sh/rtemself.h
new file mode 100644 (file)
index 0000000..8000a3a
--- /dev/null
@@ -0,0 +1,33 @@
+/* Definitions for rtems targeting a SH using elf.
+   Copyright (C) 1997 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)"
+
+/* Generate calls to memcpy, memcmp and memset.  */
+#ifndef TARGET_MEM_FUNCTIONS
+#define TARGET_MEM_FUNCTIONS
+#endif
index 9e59376e0644fd21e92e642a69de73df395e51f0..b0e6a246006b3506bbe067b682b0e91ed42f8f9b 100755 (executable)
@@ -4427,6 +4427,11 @@ for machine in $build $host $target; do
                tm_file=sh/elf.h
                float_format=sh
                ;;
+       sh-*-rtemself*)
+               tmake_file="sh/t-sh t-rtems"
+               tm_file=sh/rtemself.h
+               float_format=sh
+               ;;
        sh-*-rtems*)
                tmake_file="sh/t-sh t-rtems"
                tm_file=sh/rtems.h
@@ -5220,7 +5225,7 @@ fi
 
 # Figure out what assembler alignment features are present.
 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
-echo "configure:5224: checking assembler alignment features" >&5
+echo "configure:5229: checking assembler alignment features" >&5
 gcc_cv_as=
 gcc_cv_as_alignment_features=
 if [ -x as$host_exeext ]; then
index 097ca9e19bb894e39e1d595c5e294a2e3d51b52b..11a977782fa8c446fafe170f3c28afc60c01e44b 100644 (file)
@@ -2523,6 +2523,11 @@ for machine in $build $host $target; do
                tm_file=sh/elf.h
                float_format=sh
                ;;
+       sh-*-rtemself*)
+               tmake_file="sh/t-sh t-rtems"
+               tm_file=sh/rtemself.h
+               float_format=sh
+               ;;
        sh-*-rtems*)
                tmake_file="sh/t-sh t-rtems"
                tm_file=sh/rtems.h