aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel@OARcorp.com>1998-07-09 00:37:05 +0000
committerJeff Law <law@gcc.gnu.org>1998-07-08 18:37:05 -0600
commitb098f56dec14a56da5513752bed60e7b2db2ebdf (patch)
treeaaa56589136c96bb41737ad7aebed44a6577bec0
parent2bab5c1915a90517a48f91a0d4416eefc880d1c4 (diff)
downloadgcc-b098f56dec14a56da5513752bed60e7b2db2ebdf.zip
gcc-b098f56dec14a56da5513752bed60e7b2db2ebdf.tar.gz
gcc-b098f56dec14a56da5513752bed60e7b2db2ebdf.tar.bz2
rtemself.h: Updated to keep in sync with config/i386/linux.h.
* 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
-rw-r--r--gcc/ChangeLog13
-rw-r--r--gcc/config/i386/rtemself.h4
-rw-r--r--gcc/config/rs6000/rtems.h3
-rw-r--r--gcc/config/sh/rtems.h6
-rw-r--r--gcc/config/sh/rtemself.h33
-rwxr-xr-xgcc/configure7
-rw-r--r--gcc/configure.in5
7 files changed, 66 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc58a67..dff9842 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/rtemself.h b/gcc/config/i386/rtemself.h
index 6486102..d9d97337 100644
--- a/gcc/config/i386/rtemself.h
+++ b/gcc/config/i386/rtemself.h
@@ -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.
diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h
index 83073b0..bf14072 100644
--- a/gcc/config/rs6000/rtems.h
+++ b/gcc/config/rs6000/rtems.h
@@ -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 */
diff --git a/gcc/config/sh/rtems.h b/gcc/config/sh/rtems.h
index 1b2242b..3e3fc7b 100644
--- a/gcc/config/sh/rtems.h
+++ b/gcc/config/sh/rtems.h
@@ -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
index 0000000..8000a3a
--- /dev/null
+++ b/gcc/config/sh/rtemself.h
@@ -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
diff --git a/gcc/configure b/gcc/configure
index 9e59376..b0e6a24 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -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
diff --git a/gcc/configure.in b/gcc/configure.in
index 097ca9e..11a9777 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -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