2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2024-12-26 00:00:28 +08:00

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
This commit is contained in:
Joel Sherrill 1998-07-09 00:37:05 +00:00 committed by Jeff Law
parent 2bab5c1915
commit b098f56dec
7 changed files with 66 additions and 5 deletions

View 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) Wed Jul 8 21:43:14 1998 Jeffrey A Law (law@cygnus.com)
* configure.in: Check if the assembler supports ".balign" and * configure.in: Check if the assembler supports ".balign" and

View File

@ -41,12 +41,12 @@ Boston, MA 02111-1307, USA. */
This is only used for PIC code. See comments by the `casesi' insn in This is only used for PIC code. See comments by the `casesi' insn in
i386.md for an explanation of the expression this outputs. */ i386.md for an explanation of the expression this outputs. */
#undef ASM_OUTPUT_ADDR_DIFF_ELT #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) fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
/* Indicate that jump tables go in the text section. This is /* Indicate that jump tables go in the text section. This is
necessary when compiling PIC code. */ 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... */ /* Copy this from the svr4 specifications... */
/* Define the register numbers to be used in Dwarf debugging information. /* Define the register numbers to be used in Dwarf debugging information.

View File

@ -32,4 +32,7 @@ Boston, MA 02111-1307, USA. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
#endif #endif
#undef STARTFILE_DEFAULT_SPEC
#define STARTFILE_DEFAULT_SPEC "crt0.o%s"
/* end of rs6000/rtems.h */ /* end of rs6000/rtems.h */

View 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. Copyright (C) 1997 Free Software Foundation, Inc.
Contributed by Joel Sherrill (joel@OARcorp.com). Contributed by Joel Sherrill (joel@OARcorp.com).
@ -24,10 +24,12 @@ Boston, MA 02111-1307, USA. */
/* Specify predefined symbols in preprocessor. */ /* Specify predefined symbols in preprocessor. */
#undef CPP_PREDEFINES #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)" -Asystem(rtems) -Acpu(sh) -Amachine(sh)"
/* Generate calls to memcpy, memcmp and memset. */ /* Generate calls to memcpy, memcmp and memset. */
#ifndef TARGET_MEM_FUNCTIONS #ifndef TARGET_MEM_FUNCTIONS
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
#endif #endif
/* end of sh/rtems.h */

33
gcc/config/sh/rtemself.h Normal file
View File

@ -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

7
gcc/configure vendored
View File

@ -4427,6 +4427,11 @@ for machine in $build $host $target; do
tm_file=sh/elf.h tm_file=sh/elf.h
float_format=sh float_format=sh
;; ;;
sh-*-rtemself*)
tmake_file="sh/t-sh t-rtems"
tm_file=sh/rtemself.h
float_format=sh
;;
sh-*-rtems*) sh-*-rtems*)
tmake_file="sh/t-sh t-rtems" tmake_file="sh/t-sh t-rtems"
tm_file=sh/rtems.h tm_file=sh/rtems.h
@ -5220,7 +5225,7 @@ fi
# Figure out what assembler alignment features are present. # Figure out what assembler alignment features are present.
echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 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=
gcc_cv_as_alignment_features= gcc_cv_as_alignment_features=
if [ -x as$host_exeext ]; then if [ -x as$host_exeext ]; then

View File

@ -2523,6 +2523,11 @@ for machine in $build $host $target; do
tm_file=sh/elf.h tm_file=sh/elf.h
float_format=sh float_format=sh
;; ;;
sh-*-rtemself*)
tmake_file="sh/t-sh t-rtems"
tm_file=sh/rtemself.h
float_format=sh
;;
sh-*-rtems*) sh-*-rtems*)
tmake_file="sh/t-sh t-rtems" tmake_file="sh/t-sh t-rtems"
tm_file=sh/rtems.h tm_file=sh/rtems.h