[674fbe24] | 1 | diff -Naur gcc-4.5.1.orig/ChangeLog.rtems gcc-4.5.1/ChangeLog.rtems |
---|
| 2 | --- gcc-4.5.1.orig/ChangeLog.rtems 1970-01-01 01:00:00.000000000 +0100 |
---|
| 3 | +++ gcc-4.5.1/ChangeLog.rtems 2010-07-26 07:24:37.185492535 +0200 |
---|
| 4 | @@ -0,0 +1,4 @@ |
---|
| 5 | + Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 6 | + |
---|
| 7 | + * configure, configure.ac (skipdirs): Add target-libiberty. |
---|
| 8 | + |
---|
| 9 | diff -Naur gcc-4.5.1.orig/configure gcc-4.5.1/configure |
---|
| 10 | --- gcc-4.5.1.orig/configure 2010-06-24 23:06:37.000000000 +0200 |
---|
| 11 | +++ gcc-4.5.1/configure 2010-07-26 07:24:37.189492019 +0200 |
---|
| 12 | @@ -3291,6 +3291,7 @@ |
---|
| 13 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" |
---|
| 14 | ;; |
---|
| 15 | *-*-rtems*) |
---|
| 16 | + skipdirs="$skipdirs target-libiberty" |
---|
| 17 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
---|
| 18 | ;; |
---|
| 19 | # The tpf target doesn't support gdb yet. |
---|
| 20 | @@ -7977,7 +7978,7 @@ |
---|
| 21 | # to it. This is right: we don't want to search that directory |
---|
| 22 | # for binaries, but we want the header files in there, so add |
---|
| 23 | # them explicitly. |
---|
| 24 | - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' |
---|
| 25 | + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
---|
| 26 | |
---|
| 27 | # Someone might think of using the pre-installed headers on |
---|
| 28 | # Canadian crosses, in case the installed compiler is not fully |
---|
| 29 | diff -Naur gcc-4.5.1.orig/configure.ac gcc-4.5.1/configure.ac |
---|
| 30 | --- gcc-4.5.1.orig/configure.ac 2010-06-24 23:06:37.000000000 +0200 |
---|
| 31 | +++ gcc-4.5.1/configure.ac 2010-07-26 07:24:37.190492593 +0200 |
---|
| 32 | @@ -528,6 +528,7 @@ |
---|
| 33 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" |
---|
| 34 | ;; |
---|
| 35 | *-*-rtems*) |
---|
| 36 | + skipdirs="$skipdirs target-libiberty" |
---|
| 37 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
---|
| 38 | ;; |
---|
| 39 | # The tpf target doesn't support gdb yet. |
---|
| 40 | @@ -3030,7 +3031,7 @@ |
---|
| 41 | # to it. This is right: we don't want to search that directory |
---|
| 42 | # for binaries, but we want the header files in there, so add |
---|
| 43 | # them explicitly. |
---|
| 44 | - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' |
---|
| 45 | + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
---|
| 46 | |
---|
| 47 | # Someone might think of using the pre-installed headers on |
---|
| 48 | # Canadian crosses, in case the installed compiler is not fully |
---|
| 49 | diff -Naur gcc-4.5.1.orig/gcc/ChangeLog.rtems gcc-4.5.1/gcc/ChangeLog.rtems |
---|
| 50 | --- gcc-4.5.1.orig/gcc/ChangeLog.rtems 1970-01-01 01:00:00.000000000 +0100 |
---|
| 51 | +++ gcc-4.5.1/gcc/ChangeLog.rtems 2010-07-26 07:27:00.919492271 +0200 |
---|
| 52 | @@ -0,0 +1,47 @@ |
---|
| 53 | +2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com> |
---|
| 54 | + |
---|
| 55 | + * config.gcc (sparc64-*-rtems*): New target. |
---|
| 56 | + * config/sparc/sp64-rtemself.h: New file. |
---|
| 57 | + |
---|
| 58 | +2010-04-19 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 59 | + |
---|
| 60 | + * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _X86_64_ANSI_H_ is |
---|
| 61 | + defined (Used by amd64-*-netbsdelf5.*). |
---|
| 62 | + |
---|
| 63 | +2010-04-18 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 64 | + |
---|
| 65 | + * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _I386_ANSI_H_ is |
---|
| 66 | + defined (Used by i386-*-netbsdelf5.*). |
---|
| 67 | + |
---|
| 68 | +2010-03-15 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 69 | + |
---|
| 70 | + Patch from Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>: |
---|
| 71 | + * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional support |
---|
| 72 | + for vfp FPU model |
---|
| 73 | + |
---|
| 74 | +2009-12-01 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 75 | + |
---|
| 76 | + * config/avr/avr.h (LINK_SPEC): Pass -m avrN to ld for -mmcu=avrN. |
---|
| 77 | + |
---|
| 78 | +2009-11-04 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 79 | + |
---|
| 80 | + * config/m32c/rtems.h, config/m68k/rtemself.h, |
---|
| 81 | + config/m68k/rtemself.h, config/sh/rtemself.h, |
---|
| 82 | + config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE. |
---|
| 83 | + (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files |
---|
| 84 | + to interfere and cause wchar_t/wint_t incompatibilities). |
---|
| 85 | + |
---|
| 86 | +2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 87 | + |
---|
| 88 | + * config/avr/t-rtems: Don't build _exit. |
---|
| 89 | + |
---|
| 90 | + Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 91 | + |
---|
| 92 | + * config/rs6000/rtems.h: Support for custom RTEMS multilibs. |
---|
| 93 | + Support TARGET_E500. |
---|
| 94 | + * config/rs6000/t-rtems: Custom RTEMS multilibs. |
---|
| 95 | + |
---|
| 96 | + Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 97 | + |
---|
| 98 | + * config/mips/elf.h: Remove NO_IMPLICIT_EXTERN_C. |
---|
| 99 | + |
---|
| 100 | diff -Naur gcc-4.5.1.orig/gcc/ChangeLog.rtems~ gcc-4.5.1/gcc/ChangeLog.rtems~ |
---|
| 101 | --- gcc-4.5.1.orig/gcc/ChangeLog.rtems~ 1970-01-01 01:00:00.000000000 +0100 |
---|
| 102 | +++ gcc-4.5.1/gcc/ChangeLog.rtems~ 2010-07-26 07:25:40.000000000 +0200 |
---|
| 103 | @@ -0,0 +1,53 @@ |
---|
| 104 | +2010-05-25 Jon Beniston <jon@beniston.com> |
---|
| 105 | + |
---|
| 106 | + http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43726 |
---|
| 107 | + * config/lm32/lm32.h: Remove GO_IF_MODE_DEPENDENT_ADDRESS. |
---|
| 108 | + (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20747) |
---|
| 109 | + |
---|
| 110 | +2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com> |
---|
| 111 | + |
---|
| 112 | + * config.gcc (sparc64-*-rtems*): New target. |
---|
| 113 | + * config/sparc/sp64-rtemself.h: New file. |
---|
| 114 | + |
---|
| 115 | +2010-04-19 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 116 | + |
---|
| 117 | + * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _X86_64_ANSI_H_ is |
---|
| 118 | + defined (Used by amd64-*-netbsdelf5.*). |
---|
| 119 | + |
---|
| 120 | +2010-04-18 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 121 | + |
---|
| 122 | + * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _I386_ANSI_H_ is |
---|
| 123 | + defined (Used by i386-*-netbsdelf5.*). |
---|
| 124 | + |
---|
| 125 | +2010-03-15 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 126 | + |
---|
| 127 | + Patch from Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>: |
---|
| 128 | + * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional support |
---|
| 129 | + for vfp FPU model |
---|
| 130 | + |
---|
| 131 | +2009-12-01 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 132 | + |
---|
| 133 | + * config/avr/avr.h (LINK_SPEC): Pass -m avrN to ld for -mmcu=avrN. |
---|
| 134 | + |
---|
| 135 | +2009-11-04 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 136 | + |
---|
| 137 | + * config/m32c/rtems.h, config/m68k/rtemself.h, |
---|
| 138 | + config/m68k/rtemself.h, config/sh/rtemself.h, |
---|
| 139 | + config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE. |
---|
| 140 | + (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files |
---|
| 141 | + to interfere and cause wchar_t/wint_t incompatibilities). |
---|
| 142 | + |
---|
| 143 | +2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 144 | + |
---|
| 145 | + * config/avr/t-rtems: Don't build _exit. |
---|
| 146 | + |
---|
| 147 | + Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 148 | + |
---|
| 149 | + * config/rs6000/rtems.h: Support for custom RTEMS multilibs. |
---|
| 150 | + Support TARGET_E500. |
---|
| 151 | + * config/rs6000/t-rtems: Custom RTEMS multilibs. |
---|
| 152 | + |
---|
| 153 | + Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 154 | + |
---|
| 155 | + * config/mips/elf.h: Remove NO_IMPLICIT_EXTERN_C. |
---|
| 156 | + |
---|
| 157 | diff -Naur gcc-4.5.1.orig/gcc/config/arm/rtems-elf.h gcc-4.5.1/gcc/config/arm/rtems-elf.h |
---|
| 158 | --- gcc-4.5.1.orig/gcc/config/arm/rtems-elf.h 2009-03-25 13:54:16.000000000 +0100 |
---|
| 159 | +++ gcc-4.5.1/gcc/config/arm/rtems-elf.h 2010-07-26 07:25:15.619617524 +0200 |
---|
| 160 | @@ -36,7 +36,7 @@ |
---|
| 161 | */ |
---|
| 162 | #undef SUBTARGET_EXTRA_ASM_SPEC |
---|
| 163 | #define SUBTARGET_EXTRA_ASM_SPEC "\ |
---|
| 164 | - %{!mhard-float: %{!msoft-float:-mfpu=softfpa}}" |
---|
| 165 | + %{!mhard-float: %{!mfpu=vfp: %{!msoft-float:-mfpu=softfpa}}}" |
---|
| 166 | |
---|
| 167 | /* |
---|
| 168 | * The default includes --start-group and --end-group which conflicts |
---|
| 169 | diff -Naur gcc-4.5.1.orig/gcc/config/arm/t-rtems gcc-4.5.1/gcc/config/arm/t-rtems |
---|
| 170 | --- gcc-4.5.1.orig/gcc/config/arm/t-rtems 2004-11-23 06:30:32.000000000 +0100 |
---|
| 171 | +++ gcc-4.5.1/gcc/config/arm/t-rtems 2010-07-26 07:25:15.619617524 +0200 |
---|
| 172 | @@ -5,6 +5,41 @@ |
---|
| 173 | MULTILIB_EXCEPTIONS = |
---|
| 174 | MULTILIB_MATCHES = marm=mno-thumb |
---|
| 175 | |
---|
| 176 | -MULTILIB_OPTIONS += msoft-float/mhard-float |
---|
| 177 | -MULTILIB_DIRNAMES += soft fpu |
---|
| 178 | -MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* |
---|
| 179 | +MULTILIB_OPTIONS += mhard-float/mfloat-abi=softfp |
---|
| 180 | +MULTILIB_DIRNAMES += fpu softfp |
---|
| 181 | +MULTILIB_EXCEPTIONS += *mthumb*/*mhard-float* *mthumb*/*mfloat-abi=softfp* |
---|
| 182 | +MULTILIB_MATCHES = |
---|
| 183 | + |
---|
| 184 | +MULTILIB_OPTIONS += mfpu=vfp |
---|
| 185 | +MULTILIB_DIRNAMES += vfp |
---|
| 186 | +MULTILIB_EXCEPTIONS += *mhard-float*/*mfpu=vfp* *marm*/*mfloat-abi=softfp*/*mfpu=fpa* |
---|
| 187 | +MULTILIB_EXCLUSIONS += !mthumb/mfloat-abi=softfp/!mfpu=vfp |
---|
| 188 | + |
---|
| 189 | +# default float model is fpa, so don't create a explicit copy of it |
---|
| 190 | +MULTILIB_EXCEPTIONS += *marm*/*mfpa* |
---|
| 191 | + |
---|
| 192 | +# permutations of the options which are useful (+) or make no sense (-), |
---|
| 193 | +# defaults are in brackets: |
---|
| 194 | +# + (arm/soft/fpa) |
---|
| 195 | +# + (arm/soft)/vfp |
---|
| 196 | +# - (arm)/softfp(/fpa) |
---|
| 197 | +# + (arm)/softfp/vfp |
---|
| 198 | +# + (arm)/hard-float(/fpa) |
---|
| 199 | +# - (arm)/hard-float/vfp |
---|
| 200 | +# + thumb/(soft/fpa) |
---|
| 201 | +# + thumb/(soft/)vfp |
---|
| 202 | +# - thumb/softfp/fpa |
---|
| 203 | +# - thumb/softfp/vfp |
---|
| 204 | +# - thumb/hard-float/fpa |
---|
| 205 | +# - thumb/hard-float/vfp |
---|
| 206 | + |
---|
| 207 | +# subdirs to be used for multilibs and their respective options: |
---|
| 208 | +#/thumb/vfp -> thumb/soft/vfp |
---|
| 209 | +#/thumb/fpa -> thumb/soft/fpa |
---|
| 210 | +#/thumb -> thumb/soft/fpa |
---|
| 211 | +#/vfp -> arm/soft/vfp |
---|
| 212 | +#/softfp/vfp -> arm/softfp/cfp |
---|
| 213 | +#/fpu/fpa -> arm/hard/fpa |
---|
| 214 | +#/fpu -> arm/hard/fpa |
---|
| 215 | +#/fpa -> arm/soft/fpa |
---|
| 216 | +#. -> arm/soft/fpa |
---|
| 217 | diff -Naur gcc-4.5.1.orig/gcc/config/avr/t-rtems gcc-4.5.1/gcc/config/avr/t-rtems |
---|
| 218 | --- gcc-4.5.1.orig/gcc/config/avr/t-rtems 2004-11-23 04:44:03.000000000 +0100 |
---|
| 219 | +++ gcc-4.5.1/gcc/config/avr/t-rtems 2010-07-26 07:25:15.619617524 +0200 |
---|
| 220 | @@ -1,3 +1,4 @@ |
---|
| 221 | # Multilibs for avr RTEMS targets. |
---|
| 222 | |
---|
| 223 | -# ATM, this is just a stub |
---|
| 224 | +# RTEMS uses _exit from newlib |
---|
| 225 | +LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS)) |
---|
| 226 | diff -Naur gcc-4.5.1.orig/gcc/config/m32c/rtems.h gcc-4.5.1/gcc/config/m32c/rtems.h |
---|
| 227 | --- gcc-4.5.1.orig/gcc/config/m32c/rtems.h 2008-12-01 17:34:42.000000000 +0100 |
---|
| 228 | +++ gcc-4.5.1/gcc/config/m32c/rtems.h 2010-07-26 07:25:21.326492786 +0200 |
---|
| 229 | @@ -29,5 +29,9 @@ |
---|
| 230 | } \ |
---|
| 231 | while (0) |
---|
| 232 | |
---|
| 233 | -/* Use the default */ |
---|
| 234 | +/* Use the defaults */ |
---|
| 235 | #undef LINK_GCC_C_SEQUENCE_SPEC |
---|
| 236 | + |
---|
| 237 | +#undef WCHAR_TYPE |
---|
| 238 | + |
---|
| 239 | +#undef WCHAR_TYPE_SIZE |
---|
| 240 | diff -Naur gcc-4.5.1.orig/gcc/config/m68k/rtemself.h gcc-4.5.1/gcc/config/m68k/rtemself.h |
---|
| 241 | --- gcc-4.5.1.orig/gcc/config/m68k/rtemself.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 242 | +++ gcc-4.5.1/gcc/config/m68k/rtemself.h 2010-07-26 07:25:21.326492786 +0200 |
---|
| 243 | @@ -31,3 +31,8 @@ |
---|
| 244 | builtin_assert ("system=rtems"); \ |
---|
| 245 | } \ |
---|
| 246 | while (0) |
---|
| 247 | + |
---|
| 248 | +/* Use the defaults */ |
---|
| 249 | +#undef WCHAR_TYPE |
---|
| 250 | + |
---|
| 251 | +#undef WCHAR_TYPE_SIZE |
---|
| 252 | diff -Naur gcc-4.5.1.orig/gcc/config/mips/elf.h gcc-4.5.1/gcc/config/mips/elf.h |
---|
| 253 | --- gcc-4.5.1.orig/gcc/config/mips/elf.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 254 | +++ gcc-4.5.1/gcc/config/mips/elf.h 2010-07-26 07:25:21.327492751 +0200 |
---|
| 255 | @@ -48,6 +48,4 @@ |
---|
| 256 | #undef ENDFILE_SPEC |
---|
| 257 | #define ENDFILE_SPEC "crtend%O%s crtn%O%s" |
---|
| 258 | |
---|
| 259 | -#define NO_IMPLICIT_EXTERN_C 1 |
---|
| 260 | - |
---|
| 261 | #define HANDLE_PRAGMA_PACK_PUSH_POP 1 |
---|
| 262 | diff -Naur gcc-4.5.1.orig/gcc/config/rs6000/rtems.h gcc-4.5.1/gcc/config/rs6000/rtems.h |
---|
| 263 | --- gcc-4.5.1.orig/gcc/config/rs6000/rtems.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 264 | +++ gcc-4.5.1/gcc/config/rs6000/rtems.h 2010-07-26 07:25:21.327492751 +0200 |
---|
| 265 | @@ -49,8 +49,22 @@ |
---|
| 266 | %{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } \ |
---|
| 267 | %{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } \ |
---|
| 268 | %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \ |
---|
| 269 | -%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }" |
---|
| 270 | +%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \ |
---|
| 271 | +%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } }" |
---|
| 272 | |
---|
| 273 | #undef SUBSUBTARGET_EXTRA_SPECS |
---|
| 274 | #define SUBSUBTARGET_EXTRA_SPECS \ |
---|
| 275 | { "cpp_os_rtems", CPP_OS_RTEMS_SPEC } |
---|
| 276 | + |
---|
| 277 | +#undef SUBSUBTARGET_OVERRIDE_OPTIONS |
---|
| 278 | +#define SUBSUBTARGET_OVERRIDE_OPTIONS \ |
---|
| 279 | + do { \ |
---|
| 280 | + if (TARGET_E500) \ |
---|
| 281 | + { \ |
---|
| 282 | + rs6000_float_gprs = 1; \ |
---|
| 283 | + } \ |
---|
| 284 | + } while(0) |
---|
| 285 | + |
---|
| 286 | +#undef WCHAR_TYPE |
---|
| 287 | + |
---|
| 288 | +#undef WCHAR_TYPE_SIZE |
---|
| 289 | diff -Naur gcc-4.5.1.orig/gcc/config/rs6000/t-rtems gcc-4.5.1/gcc/config/rs6000/t-rtems |
---|
| 290 | --- gcc-4.5.1.orig/gcc/config/rs6000/t-rtems 2009-04-21 21:03:23.000000000 +0200 |
---|
| 291 | +++ gcc-4.5.1/gcc/config/rs6000/t-rtems 2010-07-26 07:25:21.327492751 +0200 |
---|
| 292 | @@ -19,12 +19,12 @@ |
---|
| 293 | # <http://www.gnu.org/licenses/>. |
---|
| 294 | |
---|
| 295 | MULTILIB_OPTIONS = \ |
---|
| 296 | -mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \ |
---|
| 297 | +mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \ |
---|
| 298 | Dmpc8260 \ |
---|
| 299 | msoft-float |
---|
| 300 | |
---|
| 301 | MULTILIB_DIRNAMES = \ |
---|
| 302 | -m403 m505 m601 m603e m604 m860 m7400 \ |
---|
| 303 | +m403 m505 m601 m603e m604 m860 m7400 m8540 \ |
---|
| 304 | mpc8260 \ |
---|
| 305 | nof |
---|
| 306 | |
---|
| 307 | @@ -47,6 +47,10 @@ |
---|
| 308 | # Map 750 to . |
---|
| 309 | MULTILIB_MATCHES += mcpu?750= |
---|
| 310 | |
---|
| 311 | +# Map e500, 8548 to 8540 |
---|
| 312 | +MULTILIB_MATCHES += mcpu?8540=mcpu?e500 |
---|
| 313 | +MULTILIB_MATCHES += mcpu?8540=mcpu?8548 |
---|
| 314 | + |
---|
| 315 | # Soft-float only, default implies msoft-float |
---|
| 316 | # NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES |
---|
| 317 | MULTILIB_SOFTFLOAT_ONLY = \ |
---|
| 318 | @@ -80,3 +84,4 @@ |
---|
| 319 | MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc* |
---|
| 320 | MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc* |
---|
| 321 | MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc* |
---|
| 322 | +MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc* |
---|
| 323 | diff -Naur gcc-4.5.1.orig/gcc/config/sh/rtemself.h gcc-4.5.1/gcc/config/sh/rtemself.h |
---|
| 324 | --- gcc-4.5.1.orig/gcc/config/sh/rtemself.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 325 | +++ gcc-4.5.1/gcc/config/sh/rtemself.h 2010-07-26 07:25:21.327492751 +0200 |
---|
| 326 | @@ -24,3 +24,8 @@ |
---|
| 327 | builtin_define( "__rtems__" ); \ |
---|
| 328 | builtin_assert( "system=rtems" ); \ |
---|
| 329 | } while (0) |
---|
| 330 | + |
---|
| 331 | +/* Use the defaults */ |
---|
| 332 | +#undef WCHAR_TYPE |
---|
| 333 | + |
---|
| 334 | +#undef WCHAR_TYPE_SIZE |
---|
| 335 | diff -Naur gcc-4.5.1.orig/gcc/config/sparc/rtemself.h gcc-4.5.1/gcc/config/sparc/rtemself.h |
---|
| 336 | --- gcc-4.5.1.orig/gcc/config/sparc/rtemself.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 337 | +++ gcc-4.5.1/gcc/config/sparc/rtemself.h 2010-07-26 07:25:21.327492751 +0200 |
---|
| 338 | @@ -29,5 +29,9 @@ |
---|
| 339 | } \ |
---|
| 340 | while (0) |
---|
| 341 | |
---|
| 342 | -/* Use the default */ |
---|
| 343 | +/* Use the defaults */ |
---|
| 344 | #undef LINK_GCC_C_SEQUENCE_SPEC |
---|
| 345 | + |
---|
| 346 | +#undef WCHAR_TYPE |
---|
| 347 | + |
---|
| 348 | +#undef WCHAR_TYPE_SIZE |
---|
| 349 | diff -Naur gcc-4.5.1.orig/gcc/config/sparc/sp64-rtemself.h gcc-4.5.1/gcc/config/sparc/sp64-rtemself.h |
---|
| 350 | --- gcc-4.5.1.orig/gcc/config/sparc/sp64-rtemself.h 1970-01-01 01:00:00.000000000 +0100 |
---|
| 351 | +++ gcc-4.5.1/gcc/config/sparc/sp64-rtemself.h 2010-07-26 07:25:40.172617529 +0200 |
---|
| 352 | @@ -0,0 +1,37 @@ |
---|
| 353 | +/* Definitions for rtems targeting a SPARC64 using ELF. |
---|
| 354 | + Copyright (C) 2010 Free Software Foundation, Inc. |
---|
| 355 | + Contributed by Joel Sherrill (joel@OARcorp.com). |
---|
| 356 | + |
---|
| 357 | +This file is part of GCC. |
---|
| 358 | + |
---|
| 359 | +GCC is free software; you can redistribute it and/or modify |
---|
| 360 | +it under the terms of the GNU General Public License as published by |
---|
| 361 | +the Free Software Foundation; either version 3, or (at your option) |
---|
| 362 | +any later version. |
---|
| 363 | + |
---|
| 364 | +GCC is distributed in the hope that it will be useful, |
---|
| 365 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 366 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 367 | +GNU General Public License for more details. |
---|
| 368 | + |
---|
| 369 | +You should have received a copy of the GNU General Public License |
---|
| 370 | +along with GCC; see the file COPYING3. If not see |
---|
| 371 | +<http://www.gnu.org/licenses/>. */ |
---|
| 372 | + |
---|
| 373 | +/* Target OS builtins. */ |
---|
| 374 | +#undef TARGET_OS_CPP_BUILTINS |
---|
| 375 | +#define TARGET_OS_CPP_BUILTINS() \ |
---|
| 376 | + do \ |
---|
| 377 | + { \ |
---|
| 378 | + builtin_define ("__rtems__"); \ |
---|
| 379 | + builtin_define ("__USE_INIT_FINI__"); \ |
---|
| 380 | + builtin_assert ("system=rtems"); \ |
---|
| 381 | + } \ |
---|
| 382 | + while (0) |
---|
| 383 | + |
---|
| 384 | +/* Use the default */ |
---|
| 385 | +#undef LINK_GCC_C_SEQUENCE_SPEC |
---|
| 386 | + |
---|
| 387 | +/* we are not svr4 */ |
---|
| 388 | +#undef CPP_SUBTARGET_SPEC |
---|
| 389 | +#define CPP_SUBTARGET_SPEC "" |
---|
| 390 | diff -Naur gcc-4.5.1.orig/gcc/config.gcc gcc-4.5.1/gcc/config.gcc |
---|
| 391 | --- gcc-4.5.1.orig/gcc/config.gcc 2010-07-14 10:41:46.000000000 +0200 |
---|
| 392 | +++ gcc-4.5.1/gcc/config.gcc 2010-07-26 07:25:40.174617369 +0200 |
---|
| 393 | @@ -2407,6 +2407,12 @@ |
---|
| 394 | tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" |
---|
| 395 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
---|
| 396 | ;; |
---|
| 397 | +sparc64-*-rtems*) |
---|
| 398 | + tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/sp64-rtemself.h rtems.h" |
---|
| 399 | + extra_options="${extra_options} sparc/little-endian.opt" |
---|
| 400 | + tmake_file="${tmake_file} sparc/t-crtfm t-rtems" |
---|
| 401 | + extra_parts="crtbegin.o crtend.o" |
---|
| 402 | + ;; |
---|
| 403 | sparc*-*-solaris2*) |
---|
| 404 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" |
---|
| 405 | case ${target} in |
---|
| 406 | diff -Naur gcc-4.5.1.orig/gcc/ginclude/stddef.h gcc-4.5.1/gcc/ginclude/stddef.h |
---|
| 407 | --- gcc-4.5.1.orig/gcc/ginclude/stddef.h 2009-04-09 17:00:19.000000000 +0200 |
---|
| 408 | +++ gcc-4.5.1/gcc/ginclude/stddef.h 2010-07-26 07:25:40.174617369 +0200 |
---|
| 409 | @@ -53,7 +53,13 @@ |
---|
| 410 | one less case to deal with in the following. */ |
---|
| 411 | #if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__) |
---|
| 412 | #include <machine/ansi.h> |
---|
| 413 | +#if !defined(_MACHINE_ANSI_H_) |
---|
| 414 | +#if defined(_I386_ANSI_H_) || defined(_X86_64_ANSI_H_) |
---|
| 415 | +#define _MACHINE_ANSI_H_ |
---|
| 416 | #endif |
---|
| 417 | +#endif |
---|
| 418 | +#endif |
---|
| 419 | + |
---|
| 420 | /* On FreeBSD 5, machine/ansi.h does not exist anymore... */ |
---|
| 421 | #if defined (__FreeBSD__) && (__FreeBSD__ >= 5) |
---|
| 422 | #include <sys/_types.h> |
---|
| 423 | diff -Naur gcc-4.5.1.orig/gcc-4.5.0/ChangeLog.rtems gcc-4.5.1/gcc-4.5.0/ChangeLog.rtems |
---|
| 424 | --- gcc-4.5.1.orig/gcc-4.5.0/ChangeLog.rtems 1970-01-01 01:00:00.000000000 +0100 |
---|
| 425 | +++ gcc-4.5.1/gcc-4.5.0/ChangeLog.rtems 2010-07-26 07:24:33.512492820 +0200 |
---|
| 426 | @@ -0,0 +1,4 @@ |
---|
| 427 | + Ralf Corsépius <ralf.corsepius@rtems.org> |
---|
| 428 | + |
---|
| 429 | + * configure, configure.ac (skipdirs): Add target-libiberty. |
---|
| 430 | + |
---|
| 431 | diff -Naur gcc-4.5.1.orig/libgcc/ChangeLog.rtems gcc-4.5.1/libgcc/ChangeLog.rtems |
---|
| 432 | --- gcc-4.5.1.orig/libgcc/ChangeLog.rtems 1970-01-01 01:00:00.000000000 +0100 |
---|
| 433 | +++ gcc-4.5.1/libgcc/ChangeLog.rtems 2010-07-26 07:25:40.174617369 +0200 |
---|
| 434 | @@ -0,0 +1,3 @@ |
---|
| 435 | +2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com> |
---|
| 436 | + |
---|
| 437 | + * config.host (sparc64-*-rtems*): New target. |
---|
| 438 | diff -Naur gcc-4.5.1.orig/libgcc/config.host gcc-4.5.1/libgcc/config.host |
---|
| 439 | --- gcc-4.5.1.orig/libgcc/config.host 2010-04-15 18:08:30.000000000 +0200 |
---|
| 440 | +++ gcc-4.5.1/libgcc/config.host 2010-07-26 07:25:40.175617549 +0200 |
---|
| 441 | @@ -535,7 +535,7 @@ |
---|
| 442 | extra_parts="$extra_parts crtfastmath.o" |
---|
| 443 | tmake_file="${tmake_file} sparc/t-crtfm" |
---|
| 444 | ;; |
---|
| 445 | -sparc-*-rtems*) |
---|
| 446 | +sparc-*-rtems* | sparc64-*-rtems* ) |
---|
| 447 | ;; |
---|
| 448 | sparc64-*-solaris2* | sparcv9-*-solaris2*) |
---|
| 449 | ;; |
---|