4 gcc/config/arm/rtems-elf.h | 1 -
5 gcc/config/avr/t-rtems | 3 ++-
6 gcc/config/mips/elf.h | 2 --
7 gcc/config/rs6000/rtems.h | 12 +++++++++++-
8 gcc/config/rs6000/t-rtems | 11 +++++++----
9 7 files changed, 24 insertions(+), 11 deletions(-)
11 Index: gcc-4.3.4/configure
12 ===================================================================
13 --- gcc-4.3.4.orig/configure 2009-04-25 07:55:24.000000000 +0200
14 +++ gcc-4.3.4/configure 2009-11-28 22:40:01.647590027 +0100
16 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
19 + skipdirs="$skipdirs target-libiberty"
20 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
22 # The tpf target doesn't support gdb yet.
24 # to it. This is right: we don't want to search that directory
25 # for binaries, but we want the header files in there, so add
27 - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
28 + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
30 # Someone might think of using the pre-installed headers on
31 # Canadian crosses, in case the installed compiler is not fully
32 Index: gcc-4.3.4/configure.ac
33 ===================================================================
34 --- gcc-4.3.4.orig/configure.ac 2009-04-25 07:55:24.000000000 +0200
35 +++ gcc-4.3.4/configure.ac 2009-11-28 22:40:01.647590027 +0100
37 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
40 + skipdirs="$skipdirs target-libiberty"
41 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
43 # The tpf target doesn't support gdb yet.
45 # to it. This is right: we don't want to search that directory
46 # for binaries, but we want the header files in there, so add
48 - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
49 + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
51 # Someone might think of using the pre-installed headers on
52 # Canadian crosses, in case the installed compiler is not fully
53 Index: gcc-4.3.4/gcc/config/arm/rtems-elf.h
54 ===================================================================
55 --- gcc-4.3.4.orig/gcc/config/arm/rtems-elf.h 2008-02-06 08:33:26.000000000 +0100
56 +++ gcc-4.3.4/gcc/config/arm/rtems-elf.h 2009-11-28 22:40:01.647590027 +0100
58 * with how this used to be defined.
60 #undef LINK_GCC_C_SEQUENCE_SPEC
61 -#define LINK_GCC_C_SEQUENCE_SPEC "%G %L"
62 Index: gcc-4.3.4/gcc/config/avr/t-rtems
63 ===================================================================
64 --- gcc-4.3.4.orig/gcc/config/avr/t-rtems 2004-11-23 04:44:03.000000000 +0100
65 +++ gcc-4.3.4/gcc/config/avr/t-rtems 2009-11-28 22:40:01.647590027 +0100
67 # Multilibs for avr RTEMS targets.
69 -# ATM, this is just a stub
70 +# RTEMS uses _exit from newlib
71 +LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS))
72 Index: gcc-4.3.4/gcc/config/mips/elf.h
73 ===================================================================
74 --- gcc-4.3.4.orig/gcc/config/mips/elf.h 2007-08-02 12:49:31.000000000 +0200
75 +++ gcc-4.3.4/gcc/config/mips/elf.h 2009-11-28 22:40:01.651569933 +0100
78 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
80 -#define NO_IMPLICIT_EXTERN_C 1
82 #define HANDLE_PRAGMA_PACK_PUSH_POP 1
83 Index: gcc-4.3.4/gcc/config/rs6000/rtems.h
84 ===================================================================
85 --- gcc-4.3.4.orig/gcc/config/rs6000/rtems.h 2007-08-02 12:49:31.000000000 +0200
86 +++ gcc-4.3.4/gcc/config/rs6000/rtems.h 2009-11-28 22:40:01.651569933 +0100
88 %{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } \
89 %{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } \
90 %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \
91 -%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }"
92 +%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \
93 +%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } }"
95 #undef SUBSUBTARGET_EXTRA_SPECS
96 #define SUBSUBTARGET_EXTRA_SPECS \
97 { "cpp_os_rtems", CPP_OS_RTEMS_SPEC }
99 +#undef SUBSUBTARGET_OVERRIDE_OPTIONS
100 +#define SUBSUBTARGET_OVERRIDE_OPTIONS \
104 + rs6000_float_gprs = 1; \
107 Index: gcc-4.3.4/gcc/config/rs6000/t-rtems
108 ===================================================================
109 --- gcc-4.3.4.orig/gcc/config/rs6000/t-rtems 2005-05-27 09:54:06.000000000 +0200
110 +++ gcc-4.3.4/gcc/config/rs6000/t-rtems 2009-11-28 22:40:01.651569933 +0100
112 # Multilibs for powerpc RTEMS targets.
115 -mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \
116 +mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \
120 MULTILIB_DIRNAMES = \
121 -m403 m505 m601 m603e m604 m860 m7400 \
122 +m403 m505 m601 m603e m604 m860 m7400 m8540 \
126 -MULTILIB_EXTRA_OPTS = mrelocatable-lib mno-eabi mstrict-align
128 # MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT}
130 MULTILIB_MATCHES += ${MULTILIB_MATCHES_ENDIAN}
133 MULTILIB_MATCHES += mcpu?750=
135 +# Map e500, 8548 to 8540
136 +MULTILIB_MATCHES += mcpu?8540=mcpu?e500
137 +MULTILIB_MATCHES += mcpu?8540=mcpu?8548
139 # Soft-float only, default implies msoft-float
140 # NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
141 MULTILIB_SOFTFLOAT_ONLY = \
143 MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc*
144 MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc*
145 MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc*
146 +MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc*