source:
rtems/contrib/crossrpms/patches/gcc-core-4.5.3-rtems4.11-20110426.diff
@
0b555d8
Last change on this file since 0b555d8 was 0b555d8, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/04/11 at 15:22:23 | |
---|---|
|
|
File size: 16.2 KB |
-
ChangeLog.rtems
diff -Naur gcc-4.5.3.orig/ChangeLog.rtems gcc-4.5.3/ChangeLog.rtems
old new 1 2008-02-05 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * configure, configure.ac (skipdirs): Add target-libiberty. 4 -
configure
diff -Naur gcc-4.5.3.orig/configure gcc-4.5.3/configure
old new 3291 3291 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" 3292 3292 ;; 3293 3293 *-*-rtems*) 3294 skipdirs="$skipdirs target-libiberty" 3294 3295 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 3295 3296 ;; 3296 3297 # The tpf target doesn't support gdb yet. … … 7975 7976 # to it. This is right: we don't want to search that directory 7976 7977 # for binaries, but we want the header files in there, so add 7977 7978 # them explicitly. 7978 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include '7979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' 7979 7980 7980 7981 # Someone might think of using the pre-installed headers on 7981 7982 # Canadian crosses, in case the installed compiler is not fully -
configure.ac
diff -Naur gcc-4.5.3.orig/configure.ac gcc-4.5.3/configure.ac
old new 528 528 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" 529 529 ;; 530 530 *-*-rtems*) 531 skipdirs="$skipdirs target-libiberty" 531 532 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 532 533 ;; 533 534 # The tpf target doesn't support gdb yet. … … 3028 3029 # to it. This is right: we don't want to search that directory 3029 3030 # for binaries, but we want the header files in there, so add 3030 3031 # them explicitly. 3031 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include '3032 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' 3032 3033 3033 3034 # Someone might think of using the pre-installed headers on 3034 3035 # Canadian crosses, in case the installed compiler is not fully -
gcc/ChangeLog.rtems
diff -Naur gcc-4.5.3.orig/gcc/ChangeLog.rtems gcc-4.5.3/gcc/ChangeLog.rtems
old new 1 2011-02-20 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib. 4 5 2011-02-20 Ralf Corsépius <ralf.corsepius@rtems.org> 6 7 * config/rs6000/t-rtems: Remove -mcpu=601 multilib. 8 * config/rs6000/t-rtems: Remove -Dmpc8260 multilib. 9 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps on 10 E500 targets. 11 12 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com> 13 14 * config.gcc (sparc64-*-rtems*): New target. 15 * config/sparc/sp64-rtemself.h: New file. 16 17 2010-04-19 Ralf Corsépius <ralf.corsepius@rtems.org> 18 19 * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _X86_64_ANSI_H_ is 20 defined (Used by amd64-*-netbsdelf5.*). 21 22 2010-04-18 Ralf Corsépius <ralf.corsepius@rtems.org> 23 24 * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _I386_ANSI_H_ is 25 defined (Used by i386-*-netbsdelf5.*). 26 27 2010-03-15 Ralf Corsépius <ralf.corsepius@rtems.org> 28 29 Patch from Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>: 30 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional support 31 for vfp FPU model 32 33 2009-12-01 Ralf Corsépius <ralf.corsepius@rtems.org> 34 35 * config/avr/avr.h (LINK_SPEC): Pass -m avrN to ld for -mmcu=avrN. 36 37 2009-11-04 Ralf Corsépius <ralf.corsepius@rtems.org> 38 39 * config/m32c/rtems.h, config/m68k/rtemself.h, 40 config/m68k/rtemself.h, config/sh/rtemself.h, 41 config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE. 42 (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files 43 to interfere and cause wchar_t/wint_t incompatibilities). 44 45 2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org> 46 47 * config/avr/t-rtems: Don't build _exit. 48 49 Ralf Corsépius <ralf.corsepius@rtems.org> 50 51 * config/rs6000/rtems.h: Support for custom RTEMS multilibs. 52 Support TARGET_E500. 53 * config/rs6000/t-rtems: Custom RTEMS multilibs. 54 55 Ralf Corsépius <ralf.corsepius@rtems.org> 56 57 * config/mips/elf.h: Remove NO_IMPLICIT_EXTERN_C. 58 -
gcc/config/arm/rtems-elf.h
diff -Naur gcc-4.5.3.orig/gcc/config/arm/rtems-elf.h gcc-4.5.3/gcc/config/arm/rtems-elf.h
old new 36 36 */ 37 37 #undef SUBTARGET_EXTRA_ASM_SPEC 38 38 #define SUBTARGET_EXTRA_ASM_SPEC "\ 39 %{!mhard-float: %{!m soft-float:-mfpu=softfpa}}"39 %{!mhard-float: %{!mfpu=vfp: %{!msoft-float:-mfpu=softfpa}}}" 40 40 41 41 /* 42 42 * The default includes --start-group and --end-group which conflicts -
gcc/config/arm/t-rtems
diff -Naur gcc-4.5.3.orig/gcc/config/arm/t-rtems gcc-4.5.3/gcc/config/arm/t-rtems
old new 5 5 MULTILIB_EXCEPTIONS = 6 6 MULTILIB_MATCHES = marm=mno-thumb 7 7 8 MULTILIB_OPTIONS += msoft-float/mhard-float 9 MULTILIB_DIRNAMES += soft fpu 10 MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* 8 MULTILIB_OPTIONS += mhard-float/mfloat-abi=softfp 9 MULTILIB_DIRNAMES += fpu softfp 10 MULTILIB_EXCEPTIONS += *mthumb*/*mhard-float* *mthumb*/*mfloat-abi=softfp* 11 MULTILIB_MATCHES = 12 13 MULTILIB_OPTIONS += mfpu=vfp 14 MULTILIB_DIRNAMES += vfp 15 MULTILIB_EXCEPTIONS += *mhard-float*/*mfpu=vfp* *marm*/*mfloat-abi=softfp*/*mfpu=fpa* 16 MULTILIB_EXCLUSIONS += !mthumb/mfloat-abi=softfp/!mfpu=vfp 17 18 # default float model is fpa, so don't create a explicit copy of it 19 MULTILIB_EXCEPTIONS += *marm*/*mfpa* 20 21 # permutations of the options which are useful (+) or make no sense (-), 22 # defaults are in brackets: 23 # + (arm/soft/fpa) 24 # + (arm/soft)/vfp 25 # - (arm)/softfp(/fpa) 26 # + (arm)/softfp/vfp 27 # + (arm)/hard-float(/fpa) 28 # - (arm)/hard-float/vfp 29 # + thumb/(soft/fpa) 30 # + thumb/(soft/)vfp 31 # - thumb/softfp/fpa 32 # - thumb/softfp/vfp 33 # - thumb/hard-float/fpa 34 # - thumb/hard-float/vfp 35 36 # subdirs to be used for multilibs and their respective options: 37 #/thumb/vfp -> thumb/soft/vfp 38 #/thumb/fpa -> thumb/soft/fpa 39 #/thumb -> thumb/soft/fpa 40 #/vfp -> arm/soft/vfp 41 #/softfp/vfp -> arm/softfp/cfp 42 #/fpu/fpa -> arm/hard/fpa 43 #/fpu -> arm/hard/fpa 44 #/fpa -> arm/soft/fpa 45 #. -> arm/soft/fpa -
gcc/config/avr/t-rtems
diff -Naur gcc-4.5.3.orig/gcc/config/avr/t-rtems gcc-4.5.3/gcc/config/avr/t-rtems
old new 1 1 # Multilibs for avr RTEMS targets. 2 2 3 # ATM, this is just a stub 3 # RTEMS uses _exit from newlib 4 LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS)) -
gcc/config/m32c/rtems.h
diff -Naur gcc-4.5.3.orig/gcc/config/m32c/rtems.h gcc-4.5.3/gcc/config/m32c/rtems.h
old new 29 29 } \ 30 30 while (0) 31 31 32 /* Use the default */32 /* Use the defaults */ 33 33 #undef LINK_GCC_C_SEQUENCE_SPEC 34 35 #undef WCHAR_TYPE 36 37 #undef WCHAR_TYPE_SIZE -
gcc/config/m68k/rtemself.h
diff -Naur gcc-4.5.3.orig/gcc/config/m68k/rtemself.h gcc-4.5.3/gcc/config/m68k/rtemself.h
old new 31 31 builtin_assert ("system=rtems"); \ 32 32 } \ 33 33 while (0) 34 35 /* Use the defaults */ 36 #undef WCHAR_TYPE 37 38 #undef WCHAR_TYPE_SIZE -
gcc/config/mips/elf.h
diff -Naur gcc-4.5.3.orig/gcc/config/mips/elf.h gcc-4.5.3/gcc/config/mips/elf.h
old new 48 48 #undef ENDFILE_SPEC 49 49 #define ENDFILE_SPEC "crtend%O%s crtn%O%s" 50 50 51 #define NO_IMPLICIT_EXTERN_C 152 53 51 #define HANDLE_PRAGMA_PACK_PUSH_POP 1 -
gcc/config/rs6000/rtems.h
diff -Naur gcc-4.5.3.orig/gcc/config/rs6000/rtems.h gcc-4.5.3/gcc/config/rs6000/rtems.h
old new 49 49 %{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } \ 50 50 %{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } \ 51 51 %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \ 52 %{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }" 52 %{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \ 53 %{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } }" 53 54 54 55 #undef SUBSUBTARGET_EXTRA_SPECS 55 56 #define SUBSUBTARGET_EXTRA_SPECS \ 56 57 { "cpp_os_rtems", CPP_OS_RTEMS_SPEC } 58 59 #undef SUBSUBTARGET_OVERRIDE_OPTIONS 60 #define SUBSUBTARGET_OVERRIDE_OPTIONS \ 61 do { \ 62 if (TARGET_E500) \ 63 { \ 64 if (!rs6000_explicit_options.float_gprs) \ 65 rs6000_float_gprs = 1; \ 66 } \ 67 } while(0) 68 69 #undef WCHAR_TYPE 70 71 #undef WCHAR_TYPE_SIZE -
gcc/config/rs6000/t-rtems
diff -Naur gcc-4.5.3.orig/gcc/config/rs6000/t-rtems gcc-4.5.3/gcc/config/rs6000/t-rtems
old new 19 19 # <http://www.gnu.org/licenses/>. 20 20 21 21 MULTILIB_OPTIONS = \ 22 mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \ 23 Dmpc8260 \ 24 msoft-float 22 mcpu=403/mcpu=505/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \ 23 msoft-float/mfloat-gprs=double 25 24 26 25 MULTILIB_DIRNAMES = \ 27 m403 m505 m601 m603e m604 m860 m7400 \ 28 mpc8260 \ 29 nof 26 m403 m505 m603e m604 m860 m7400 m8540 \ 27 nof gprsdouble 30 28 31 29 # MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT} 32 30 MULTILIB_MATCHES = … … 47 45 # Map 750 to . 48 46 MULTILIB_MATCHES += mcpu?750= 49 47 48 # Map 8548 to 8540 49 MULTILIB_MATCHES += mcpu?8540=mcpu?8548 50 51 # Map -mcpu=8540 -mfloat-gprs=single to -mcpu=8540 52 # (mfloat-gprs=single is implicit default) 53 MULTILIB_MATCHES += mcpu?8540=mcpu?8540/mfloat-gprs?single 54 50 55 # Soft-float only, default implies msoft-float 51 56 # NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES 52 57 MULTILIB_SOFTFLOAT_ONLY = \ … … 62 67 MULTILIB_HARDFLOAT_ONLY = \ 63 68 *mcpu=505/*msoft-float* 64 69 70 # Targets which do not support gprs 71 MULTILIB_NOGPRS = \ 72 mfloat-gprs=* \ 73 *mcpu=403/*mfloat-gprs=* \ 74 *mcpu=505/*mfloat-gprs=* \ 75 *mcpu=603e/*mfloat-gprs=* \ 76 *mcpu=604/*mfloat-gprs=* \ 77 *mcpu=860/*mfloat-gprs=* \ 78 *mcpu=7400/*mfloat-gprs=* 79 65 80 MULTILIB_EXCEPTIONS = 66 81 67 82 # Disallow -Dppc and -Dmpc without other options … … 69 84 70 85 MULTILIB_EXCEPTIONS += \ 71 86 ${MULTILIB_SOFTFLOAT_ONLY} \ 72 ${MULTILIB_HARDFLOAT_ONLY} 87 ${MULTILIB_HARDFLOAT_ONLY} \ 88 ${MULTILIB_NOGPRS} 73 89 74 90 # Special rules 75 91 # Take out all variants we don't want 76 MULTILIB_EXCEPTIONS += *mcpu=403/Dmpc*77 MULTILIB_EXCEPTIONS += *mcpu=505/Dmpc*78 MULTILIB_EXCEPTIONS += *mcpu=601/Dmpc*79 MULTILIB_EXCEPTIONS += *mcpu=604/Dmpc*80 MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc*81 MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc*82 MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc* -
gcc/config/sh/rtemself.h
diff -Naur gcc-4.5.3.orig/gcc/config/sh/rtemself.h gcc-4.5.3/gcc/config/sh/rtemself.h
old new 24 24 builtin_define( "__rtems__" ); \ 25 25 builtin_assert( "system=rtems" ); \ 26 26 } while (0) 27 28 /* Use the defaults */ 29 #undef WCHAR_TYPE 30 31 #undef WCHAR_TYPE_SIZE -
gcc/config/sparc/rtemself.h
diff -Naur gcc-4.5.3.orig/gcc/config/sparc/rtemself.h gcc-4.5.3/gcc/config/sparc/rtemself.h
old new 29 29 } \ 30 30 while (0) 31 31 32 /* Use the default */32 /* Use the defaults */ 33 33 #undef LINK_GCC_C_SEQUENCE_SPEC 34 35 #undef WCHAR_TYPE 36 37 #undef WCHAR_TYPE_SIZE -
gcc/config/sparc/sp64-rtemself.h
diff -Naur gcc-4.5.3.orig/gcc/config/sparc/sp64-rtemself.h gcc-4.5.3/gcc/config/sparc/sp64-rtemself.h
old new 1 /* Definitions for rtems targeting a SPARC64 using ELF. 2 Copyright (C) 2010 Free Software Foundation, Inc. 3 Contributed by Joel Sherrill (joel@OARcorp.com). 4 5 This file is part of GCC. 6 7 GCC is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3, or (at your option) 10 any later version. 11 12 GCC is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with GCC; see the file COPYING3. If not see 19 <http://www.gnu.org/licenses/>. */ 20 21 /* Target OS builtins. */ 22 #undef TARGET_OS_CPP_BUILTINS 23 #define TARGET_OS_CPP_BUILTINS() \ 24 do \ 25 { \ 26 builtin_define ("__rtems__"); \ 27 builtin_define ("__USE_INIT_FINI__"); \ 28 builtin_assert ("system=rtems"); \ 29 } \ 30 while (0) 31 32 /* Use the default */ 33 #undef LINK_GCC_C_SEQUENCE_SPEC 34 35 /* we are not svr4 */ 36 #undef CPP_SUBTARGET_SPEC 37 #define CPP_SUBTARGET_SPEC "" -
gcc/config.gcc
diff -Naur gcc-4.5.3.orig/gcc/config.gcc gcc-4.5.3/gcc/config.gcc
old new 2408 2408 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" 2409 2409 extra_parts="crti.o crtn.o crtbegin.o crtend.o" 2410 2410 ;; 2411 sparc64-*-rtems*) 2412 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" 2413 extra_options="${extra_options} sparc/little-endian.opt" 2414 tmake_file="${tmake_file} sparc/t-crtfm t-rtems" 2415 extra_parts="crtbegin.o crtend.o" 2416 ;; 2411 2417 sparc*-*-solaris2*) 2412 2418 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" 2413 2419 case ${target} in -
gcc/ginclude/stddef.h
diff -Naur gcc-4.5.3.orig/gcc/ginclude/stddef.h gcc-4.5.3/gcc/ginclude/stddef.h
old new 53 53 one less case to deal with in the following. */ 54 54 #if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__) 55 55 #include <machine/ansi.h> 56 #if !defined(_MACHINE_ANSI_H_) 57 #if defined(_I386_ANSI_H_) || defined(_X86_64_ANSI_H_) 58 #define _MACHINE_ANSI_H_ 56 59 #endif 60 #endif 61 #endif 62 57 63 /* On FreeBSD 5, machine/ansi.h does not exist anymore... */ 58 64 #if defined (__FreeBSD__) && (__FreeBSD__ >= 5) 59 65 #include <sys/_types.h> -
libgcc/ChangeLog.rtems
diff -Naur gcc-4.5.3.orig/libgcc/ChangeLog.rtems gcc-4.5.3/libgcc/ChangeLog.rtems
old new 1 2010-08-17 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 1669/Tools, GCC-BZ 44793 4 * config.host (powerpc-*-rtems*): Add tmake_file. 5 Add extra_parts. 6 7 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com> 8 9 * config.host (sparc64-*-rtems*): New target. -
libgcc/config.host
diff -Naur gcc-4.5.3.orig/libgcc/config.host gcc-4.5.3/libgcc/config.host
old new 470 470 tmake_file="${tmake_file} rs6000/t-ppccomm" 471 471 ;; 472 472 powerpc-*-rtems*) 473 tmake_file="${tmake_file} rs6000/t-ppccomm t-softfp" 474 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" 473 475 ;; 474 476 powerpc-*-linux* | powerpc64-*-linux*) 475 477 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp" … … 539 541 extra_parts="$extra_parts crtfastmath.o" 540 542 tmake_file="${tmake_file} sparc/t-crtfm" 541 543 ;; 542 sparc-*-rtems* )544 sparc-*-rtems* | sparc64-*-rtems* ) 543 545 ;; 544 546 sparc64-*-solaris2* | sparcv9-*-solaris2*) 545 547 ;;
Note: See TracBrowser
for help on using the repository browser.