OSDN Git Service

2002-04-12 Eric Norum <eric.norum@usask.ca>
authorjoel <joel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Apr 2002 13:35:03 +0000 (13:35 +0000)
committerjoel <joel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Apr 2002 13:35:03 +0000 (13:35 +0000)
* config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
config/v850/rtems.h (*-rtems*): Cleanup pass to move common
definitions to config/rtems.h and make the targets more similar.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52225 138bc75d-0d04-0410-961f-82ee72b054a4

20 files changed:
gcc/ChangeLog
gcc/config/a29k/rtems.h
gcc/config/arm/rtems-elf.h
gcc/config/c4x/rtems.h
gcc/config/h8300/rtems.h
gcc/config/i386/rtems.h
gcc/config/i386/rtemself.h
gcc/config/i960/rtems.h
gcc/config/m68k/rtems.h
gcc/config/m68k/rtemself.h
gcc/config/mips/rtems.h
gcc/config/mips/rtems64.h
gcc/config/pa/rtems.h
gcc/config/rs6000/rtems.h
gcc/config/rtems.h
gcc/config/sh/rtems.h
gcc/config/sh/rtemself.h
gcc/config/sparc/rtems.h
gcc/config/sparc/rtemself.h
gcc/config/v850/rtems.h

index 63fc94f..0250693 100644 (file)
@@ -1,3 +1,14 @@
+2002-04-12     Eric Norum <eric.norum@usask.ca>
+
+       * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
+       config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
+       config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
+       config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
+       config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
+       config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
+       config/v850/rtems.h (*-rtems*): Cleanup pass to move common
+       definitions to config/rtems.h and make the targets more similar.
+
 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * expr.c (expand_assigment): Remove duplicate conversions #ifdef
index c2c9d6a..ef65445 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D_AM29K -D_AM29000 -D_EPI -D__rtems__ \
   -Asystem=rtems -Acpu=a29k -Amachine=a29k"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 8663768..79da8c9 100644 (file)
@@ -25,6 +25,3 @@ Boston, MA 02111-1307, USA.  */
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D__rtems__ -D__ELF__ -Asystem=rtems"
-
-#undef INVOKE_main
-
index d4364df..400d883 100644 (file)
@@ -23,8 +23,3 @@ Boston, MA 02111-1307, USA.  */
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D__rtems__ -Asystem=rtems -D__USE_INIT_FINI__"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index f1b4b33..2e7676f 100644 (file)
@@ -23,8 +23,3 @@ Boston, MA 02111-1307, USA.  */
 #define CPP_PREDEFINES "-Dh8300 \
   -D__LONG_MAX__=2147483647L -D__LONG_LONG_MAX__=2147483647L \
   -D__rtems__ -Asystem=rtems"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 9e8fab7..16fd6fb 100644 (file)
@@ -26,8 +26,3 @@ Boston, MA 02111-1307, USA.  */
 
 #undef  TARGET_VERSION
 #define TARGET_VERSION fprintf (stderr, " (80386, RTEMS)"); 
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 2ebc517..7e831b9 100644 (file)
@@ -21,20 +21,11 @@ Boston, MA 02111-1307, USA.  */
 
 /* Specify predefined symbols in preprocessor.  */
 
+#include <i386/i386elf.h>
+
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES  "-D__rtems__ -Asystem=rtems \
     -D__ELF__ -D__i386__ -D__USE_INIT_FINI__"
 
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) %{msoft-float:-D_SOFT_FLOAT}"
-
-#undef STARTFILE_SPEC
-#define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
-
-#undef ENDFILE_SPEC
-#define ENDFILE_SPEC   "crtend.o%s crtn.o%s"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index d1dccc0..411acfc 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -D__rtems__ \
    -Asystem=rtems -Acpu=i960 -Amachine=i960"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 89b5160..7a6f55b 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dmc68000 -D__rtems__ \
    -Asystem=rtems -Acpu=mc68000 -Acpu=m68k -Amachine=m68k"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 473ee25..eb627f6 100644 (file)
@@ -22,41 +22,8 @@ Boston, MA 02111-1307, USA.  */
 
 #define MOTOROLA       /* Use Motorola syntax rather than MIT.  */
 
-#include "m68k/m68020-elf.h"
-
 /* Specify predefined symbols in preprocessor.  */
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dmc68000 -D__rtems__ -D__ELF__ -D__USE_INIT_FINI__ \
    -Asystem=rtems -Acpu=mc68000 -Acpu=m68k -Amachine=m68k"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
-
-/*
- *  Each RTEMS BSP provides its own crt0 and linker script.  Unfortunately
- *  this means that crt0 and the linker script are not available as
- *  each tool is configured.  Without a crt0 and linker script, m68k ELF
- *  targets do not successfully link "conftest.c" during the configuration
- *  process.  RTEMS supplies a crt0.c that provides all the symbols required
- *  to successfully link a program.  The resulting program will not run 
- *  but this is enough to satisfy the autoconf macro AC_PROG_CC.
- *  Override STARTFILE_SPEC to use the fake crt0.o supplied by rtems.
- */
-#undef STARTFILE_SPEC
-#define STARTFILE_SPEC "crt0.o%s"
-
-/*
- *  Redefine INIT_SECTION_ASM_OP and FINI_SECTION_ASM_OP. This is the easiest
- *  way to process constructors, destructors, and the exception frame
- *  information at startup.
- */
-#undef INIT_SECTION_ASM_OP
-#define INIT_SECTION_ASM_OP    "\t.section\t.init"
-#undef FINI_SECTION_ASM_OP
-#define FINI_SECTION_ASM_OP    "\t.section\t.fini"
-
-/* Do I need this? */
-#undef INVOKE__main
index 0a2692a..35674e2 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dmips -DMIPSEB -D_mips -D_MIPSEB \
    -D__rtems__ -Asystem=rtems"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 78281b6..e3c74ca 100644 (file)
@@ -25,11 +25,6 @@ Boston, MA 02111-1307, USA.  */
 #define CPP_PREDEFINES "-Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D_R4000 \
    -D__rtems__ -Asystem=rtems"
 
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
-
 #undef EXTRA_SECTIONS
 #define EXTRA_SECTIONS in_sdata, in_rdata
 
index 10b892e..fe83e85 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dhppa -DPWB -Acpu=hppa -Amachine=hppa \
    -D__rtems__ -Asystem=rtems"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index cb5cac5..aa68130 100644 (file)
@@ -24,11 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-DPPC -D__rtems__ \
    -Asystem=rtems -Acpu=powerpc -Amachine=powerpc"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
-
-#undef STARTFILE_DEFAULT_SPEC
-#define STARTFILE_DEFAULT_SPEC "crt0.o%s"
index a5ac8a7..c159261 100644 (file)
@@ -1,5 +1,5 @@
 /* Configuration common to all targets running RTEMS. 
-   Copyright (C) 2000 Free Software Foundation, Inc. 
+   Copyright (C) 2000, 2002 Free Software Foundation, Inc. 
 
 This file is part of GNU CC.
 
@@ -20,3 +20,18 @@ Boston, MA 02111-1307, USA.  */
 
 /* The system headers under RTEMS are C++-aware.  */
 #define NO_IMPLICIT_EXTERN_C
+
+/* Generate calls to memcpy, memcmp and memset.  */
+#ifndef TARGET_MEM_FUNCTIONS
+#define TARGET_MEM_FUNCTIONS
+#endif
+
+/*
+ * Dummy start/end specification to let linker work as
+ * needed by autoconf scripts using this compiler.
+ */
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
+
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC   "crtend.o%s crtn.o%s"
index 3f8ce8b..b52ef72 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D__sh__ -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 552d77a..6177c81 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D__sh__ -D__ELF__ -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 f6947ea..e537f1c 100644 (file)
@@ -25,8 +25,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -D__rtems__ \
   -Asystem=rtems"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 6faa9be..4f2cc66 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -D__rtems__ \
   -D__USE_INIT_FINI__ -Asystem=rtems"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif
index 4f49ba6..14ddfa1 100644 (file)
@@ -24,8 +24,3 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D__v851__ -D__v850 -D__rtems__ \
   -Asystem=rtems -Acpu=v850 -Amachine=v850"
-
-/* Generate calls to memcpy, memcmp and memset.  */
-#ifndef TARGET_MEM_FUNCTIONS
-#define TARGET_MEM_FUNCTIONS
-#endif