[e0c27b1] | 1 | diff -uNr gcc-4.2-20070102.orig/gcc/config/arm/rtems-elf.h gcc-4.2-20070102/gcc/config/arm/rtems-elf.h |
---|
| 2 | --- gcc-4.2-20070102.orig/gcc/config/arm/rtems-elf.h 2005-11-21 23:56:34.000000000 +0100 |
---|
| 3 | +++ gcc-4.2-20070102/gcc/config/arm/rtems-elf.h 2007-01-04 08:48:09.000000000 +0100 |
---|
| 4 | @@ -27,6 +27,7 @@ |
---|
| 5 | #define TARGET_OS_CPP_BUILTINS() \ |
---|
| 6 | do { \ |
---|
| 7 | builtin_define ("__rtems__"); \ |
---|
| 8 | + builtin_define ("__USE_INIT_FINI__"); \ |
---|
| 9 | builtin_assert ("system=rtems"); \ |
---|
| 10 | } while (0) |
---|
| 11 | |
---|
| 12 | diff -uNr gcc-4.2-20070102.orig/gcc/config/bfin/rtems.h gcc-4.2-20070102/gcc/config/bfin/rtems.h |
---|
| 13 | --- gcc-4.2-20070102.orig/gcc/config/bfin/rtems.h 1970-01-01 01:00:00.000000000 +0100 |
---|
| 14 | +++ gcc-4.2-20070102/gcc/config/bfin/rtems.h 2007-01-04 08:48:09.000000000 +0100 |
---|
| 15 | @@ -0,0 +1,29 @@ |
---|
| 16 | +/* Definitions for rtems targeting a bfin |
---|
| 17 | + Copyright (C) 2006 Free Software Foundation, Inc. |
---|
| 18 | + Contributed by Ralf Corsépius (ralf.corsepius@rtems.org). |
---|
| 19 | + |
---|
| 20 | +This file is part of GCC. |
---|
| 21 | + |
---|
| 22 | +GCC is free software; you can redistribute it and/or modify |
---|
| 23 | +it under the terms of the GNU General Public License as published by |
---|
| 24 | +the Free Software Foundation; either version 2, or (at your option) |
---|
| 25 | +any later version. |
---|
| 26 | + |
---|
| 27 | +GCC is distributed in the hope that it will be useful, |
---|
| 28 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 29 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 30 | +GNU General Public License for more details. |
---|
| 31 | + |
---|
| 32 | +You should have received a copy of the GNU General Public License |
---|
| 33 | +along with GCC; see the file COPYING. If not, write to |
---|
| 34 | +the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 35 | +Boston, MA 02110-1301, USA. */ |
---|
| 36 | + |
---|
| 37 | +/* Target OS preprocessor built-ins. */ |
---|
| 38 | +#define TARGET_OS_CPP_BUILTINS() \ |
---|
| 39 | + do \ |
---|
| 40 | + { \ |
---|
| 41 | + builtin_define ("__rtems__"); \ |
---|
| 42 | + builtin_assert ("system=rtems"); \ |
---|
| 43 | + } \ |
---|
| 44 | + while (0) |
---|
| 45 | diff -uNr gcc-4.2-20070102.orig/gcc/config/bfin/t-bfin gcc-4.2-20070102/gcc/config/bfin/t-bfin |
---|
| 46 | --- gcc-4.2-20070102.orig/gcc/config/bfin/t-bfin 2005-04-05 13:26:48.000000000 +0200 |
---|
| 47 | +++ gcc-4.2-20070102/gcc/config/bfin/t-bfin 2007-01-04 08:48:09.000000000 +0100 |
---|
| 48 | @@ -15,10 +15,6 @@ |
---|
| 49 | echo '#define FLOAT' > fp-bit.c |
---|
| 50 | cat $(srcdir)/config/fp-bit.c >> fp-bit.c |
---|
| 51 | |
---|
| 52 | -# This shouldn't be needed here. I added it to the specs file for now, until |
---|
| 53 | -# it is fixed in binutils (if it is necessary). |
---|
| 54 | -GCC_CFLAGS += -N |
---|
| 55 | - |
---|
| 56 | # Assemble startup files. |
---|
| 57 | $(T)crti.o: $(srcdir)/config/bfin/crti.s $(GCC_PASSES) |
---|
| 58 | $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ |
---|
| 59 | diff -uNr gcc-4.2-20070102.orig/gcc/config/bfin/t-bfin-elf gcc-4.2-20070102/gcc/config/bfin/t-bfin-elf |
---|
| 60 | --- gcc-4.2-20070102.orig/gcc/config/bfin/t-bfin-elf 2006-05-29 16:11:07.000000000 +0200 |
---|
| 61 | +++ gcc-4.2-20070102/gcc/config/bfin/t-bfin-elf 2007-01-04 08:48:09.000000000 +0100 |
---|
| 62 | @@ -15,10 +15,6 @@ |
---|
| 63 | echo '#define FLOAT' > fp-bit.c |
---|
| 64 | cat $(srcdir)/config/fp-bit.c >> fp-bit.c |
---|
| 65 | |
---|
| 66 | -# This shouldn't be needed here. I added it to the specs file for now, until |
---|
| 67 | -# it is fixed in binutils (if it is necessary). |
---|
| 68 | -GCC_CFLAGS += -N |
---|
| 69 | - |
---|
| 70 | CRTSTUFF_T_CFLAGS = -fpic |
---|
| 71 | TARGET_LIBGCC2_CFLAGS = -fpic |
---|
| 72 | |
---|
| 73 | diff -uNr gcc-4.2-20070102.orig/gcc/config/bfin/t-rtems gcc-4.2-20070102/gcc/config/bfin/t-rtems |
---|
| 74 | --- gcc-4.2-20070102.orig/gcc/config/bfin/t-rtems 1970-01-01 01:00:00.000000000 +0100 |
---|
| 75 | +++ gcc-4.2-20070102/gcc/config/bfin/t-rtems 2007-01-04 08:48:09.000000000 +0100 |
---|
| 76 | @@ -0,0 +1,6 @@ |
---|
| 77 | +# Multilibs for fbin RTEMS targets. |
---|
| 78 | + |
---|
| 79 | +MULTILIB_OPTIONS = |
---|
| 80 | +MULTILIB_DIRNAMES = |
---|
| 81 | +MULTILIB_EXTRA_OPTS = |
---|
| 82 | +MULTILIB_EXCEPTIONS = |
---|
| 83 | diff -uNr gcc-4.2-20070102.orig/gcc/config/c4x/rtems.h gcc-4.2-20070102/gcc/config/c4x/rtems.h |
---|
| 84 | --- gcc-4.2-20070102.orig/gcc/config/c4x/rtems.h 2005-06-25 03:22:41.000000000 +0200 |
---|
| 85 | +++ gcc-4.2-20070102/gcc/config/c4x/rtems.h 2007-01-04 08:48:09.000000000 +0100 |
---|
| 86 | @@ -24,6 +24,5 @@ |
---|
| 87 | #define TARGET_OS_CPP_BUILTINS() \ |
---|
| 88 | do { \ |
---|
| 89 | builtin_define ("__rtems__"); \ |
---|
| 90 | - builtin_define ("__USE_INIT_FINI__"); \ |
---|
| 91 | builtin_assert ("system=rtems"); \ |
---|
| 92 | } while (0) |
---|
| 93 | diff -uNr gcc-4.2-20070102.orig/gcc/config/mips/elf.h gcc-4.2-20070102/gcc/config/mips/elf.h |
---|
| 94 | --- gcc-4.2-20070102.orig/gcc/config/mips/elf.h 2006-10-08 09:35:47.000000000 +0200 |
---|
| 95 | +++ gcc-4.2-20070102/gcc/config/mips/elf.h 2007-01-04 08:48:09.000000000 +0100 |
---|
| 96 | @@ -49,6 +49,4 @@ |
---|
| 97 | #undef ENDFILE_SPEC |
---|
| 98 | #define ENDFILE_SPEC "crtend%O%s crtn%O%s" |
---|
| 99 | |
---|
| 100 | -#define NO_IMPLICIT_EXTERN_C 1 |
---|
| 101 | - |
---|
| 102 | #define HANDLE_PRAGMA_PACK_PUSH_POP 1 |
---|
| 103 | diff -uNr gcc-4.2-20070102.orig/gcc/config.gcc gcc-4.2-20070102/gcc/config.gcc |
---|
| 104 | --- gcc-4.2-20070102.orig/gcc/config.gcc 2006-11-10 01:02:21.000000000 +0100 |
---|
| 105 | +++ gcc-4.2-20070102/gcc/config.gcc 2007-01-04 08:48:09.000000000 +0100 |
---|
| 106 | @@ -786,6 +786,10 @@ |
---|
| 107 | tmake_file=bfin/t-bfin-elf |
---|
| 108 | use_collect2=no |
---|
| 109 | ;; |
---|
| 110 | +bfin*-rtems*) |
---|
| 111 | + tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h" |
---|
| 112 | + tmake_file="bfin/t-bfin t-rtems bfin/t-rtems" |
---|
| 113 | + ;; |
---|
| 114 | bfin*-*) |
---|
| 115 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h" |
---|
| 116 | tmake_file=bfin/t-bfin |
---|