diff options
| author | Khem Raj <raj.khem@gmail.com> | 2011-06-18 00:37:23 +0000 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-19 11:01:12 +0200 |
| commit | 7d954ed266bef307285383c42d2070a8ef3b62a3 (patch) | |
| tree | b4c69f59f400106c9f12be310f914a14ad0835cc /meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch | |
| parent | c85efd2281af4556854107768d7583a8208b6647 (diff) | |
| download | meta-openembedded-7d954ed266bef307285383c42d2070a8ef3b62a3.tar.gz | |
gcc-4.5: Upgrade to latest gcc-4_5-branch and linaro 4.5
Additionally fix ppc build break caused by linaro android config
patches.
Angstrom console-image built clean from scratch for arm ppc mips x86 x86_64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch')
| -rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch | 227 |
1 files changed, 227 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch new file mode 100644 index 0000000000..9c2c298882 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/gcc-ppc-config-fix.patch | |||
| @@ -0,0 +1,227 @@ | |||
| 1 | commit de784bee66a1ec1d0dad00d9eedbe9b1667dd883 | ||
| 2 | Author: jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
| 3 | Date: Mon Dec 20 15:29:31 2010 +0000 | ||
| 4 | |||
| 5 | * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define. | ||
| 6 | (DBX_REGISTER_NUMBER): Define. | ||
| 7 | * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define. | ||
| 8 | * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define. | ||
| 9 | * config/rs6000/sysv4.h (SIZE_TYPE): Define. | ||
| 10 | (ASM_SPEC): Define without using SVR4_ASM_SPEC. | ||
| 11 | (DBX_REGISTER_NUMBER): Undefine. | ||
| 12 | * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*, | ||
| 13 | powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*, | ||
| 14 | powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*, | ||
| 15 | powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*, | ||
| 16 | powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*, | ||
| 17 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*, | ||
| 18 | powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h. | ||
| 19 | |||
| 20 | |||
| 21 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168085 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
| 22 | |||
| 23 | Index: gcc-4.5.3/gcc/config.gcc | ||
| 24 | =================================================================== | ||
| 25 | --- gcc-4.5.3.orig/gcc/config.gcc 2011-06-15 21:18:55.000000000 -0700 | ||
| 26 | +++ gcc-4.5.3/gcc/config.gcc 2011-06-16 15:01:07.945285352 -0700 | ||
| 27 | @@ -1989,53 +1989,53 @@ | ||
| 28 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 29 | ;; | ||
| 30 | powerpc-*-eabispe*) | ||
| 31 | - tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h" | ||
| 32 | + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h" | ||
| 33 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 34 | tmake_file="rs6000/t-spe rs6000/t-ppccomm" | ||
| 35 | use_gcc_stdint=wrap | ||
| 36 | ;; | ||
| 37 | powerpc-*-eabisimaltivec*) | ||
| 38 | - tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h" | ||
| 39 | + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h" | ||
| 40 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 41 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm" | ||
| 42 | use_gcc_stdint=wrap | ||
| 43 | ;; | ||
| 44 | powerpc-*-eabisim*) | ||
| 45 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" | ||
| 46 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" | ||
| 47 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 48 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" | ||
| 49 | use_gcc_stdint=wrap | ||
| 50 | ;; | ||
| 51 | powerpc-*-elf*) | ||
| 52 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h" | ||
| 53 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h" | ||
| 54 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 55 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" | ||
| 56 | ;; | ||
| 57 | powerpc-*-eabialtivec*) | ||
| 58 | - tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h" | ||
| 59 | + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h" | ||
| 60 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 61 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm" | ||
| 62 | use_gcc_stdint=wrap | ||
| 63 | ;; | ||
| 64 | powerpc-xilinx-eabi*) | ||
| 65 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h" | ||
| 66 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h" | ||
| 67 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 68 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx" | ||
| 69 | use_gcc_stdint=wrap | ||
| 70 | ;; | ||
| 71 | powerpc-*-eabi*) | ||
| 72 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h" | ||
| 73 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h" | ||
| 74 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 75 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" | ||
| 76 | use_gcc_stdint=wrap | ||
| 77 | ;; | ||
| 78 | powerpc-*-rtems*) | ||
| 79 | - tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h" | ||
| 80 | + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h" | ||
| 81 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 82 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm" | ||
| 83 | ;; | ||
| 84 | powerpc-*-linux* | powerpc64-*-linux*) | ||
| 85 | - tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" | ||
| 86 | + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h" | ||
| 87 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 88 | tmake_file="t-dfprules rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" | ||
| 89 | maybe_biarch=yes | ||
| 90 | @@ -2079,12 +2079,12 @@ | ||
| 91 | fi | ||
| 92 | ;; | ||
| 93 | powerpc64-*-gnu*) | ||
| 94 | - tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/default64.h rs6000/linux64.h rs6000/gnu.h glibc-stdint.h" | ||
| 95 | + tm_file="${tm_file} elfos.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/default64.h rs6000/linux64.h rs6000/gnu.h glibc-stdint.h" | ||
| 96 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" | ||
| 97 | tmake_file="t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu" | ||
| 98 | ;; | ||
| 99 | powerpc-*-gnu-gnualtivec*) | ||
| 100 | - tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h glibc-stdint.h" | ||
| 101 | + tm_file="${cpu_type}/${cpu_type}.h elfos.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h glibc-stdint.h" | ||
| 102 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 103 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm" | ||
| 104 | if test x$enable_threads = xyes; then | ||
| 105 | @@ -2092,7 +2092,7 @@ | ||
| 106 | fi | ||
| 107 | ;; | ||
| 108 | powerpc-*-gnu*) | ||
| 109 | - tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h glibc-stdint.h" | ||
| 110 | + tm_file="${cpu_type}/${cpu_type}.h elfos.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h glibc-stdint.h" | ||
| 111 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm" | ||
| 112 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 113 | if test x$enable_threads = xyes; then | ||
| 114 | @@ -2100,7 +2100,7 @@ | ||
| 115 | fi | ||
| 116 | ;; | ||
| 117 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) | ||
| 118 | - tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" | ||
| 119 | + tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" | ||
| 120 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppccomm rs6000/t-vxworks" | ||
| 121 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 122 | extra_headers=ppc-asm.h | ||
| 123 | @@ -2126,18 +2126,18 @@ | ||
| 124 | gas=yes | ||
| 125 | ;; | ||
| 126 | powerpcle-*-elf*) | ||
| 127 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h" | ||
| 128 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h" | ||
| 129 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" | ||
| 130 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 131 | ;; | ||
| 132 | powerpcle-*-eabisim*) | ||
| 133 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" | ||
| 134 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" | ||
| 135 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" | ||
| 136 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 137 | use_gcc_stdint=wrap | ||
| 138 | ;; | ||
| 139 | powerpcle-*-eabi*) | ||
| 140 | - tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h" | ||
| 141 | + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h" | ||
| 142 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" | ||
| 143 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
| 144 | use_gcc_stdint=wrap | ||
| 145 | Index: gcc-4.5.3/gcc/config/rs6000/freebsd.h | ||
| 146 | =================================================================== | ||
| 147 | --- gcc-4.5.3.orig/gcc/config/rs6000/freebsd.h 2009-08-10 11:23:57.000000000 -0700 | ||
| 148 | +++ gcc-4.5.3/gcc/config/rs6000/freebsd.h 2011-06-16 15:02:02.775285339 -0700 | ||
| 149 | @@ -69,6 +69,4 @@ | ||
| 150 | /* Override rs6000.h definition. */ | ||
| 151 | #undef ASM_APP_OFF | ||
| 152 | #define ASM_APP_OFF "#NO_APP\n" | ||
| 153 | -/* Define SVR4_ASM_SPEC, we use GAS by default. See svr4.h for details. */ | ||
| 154 | -#define SVR4_ASM_SPEC \ | ||
| 155 | - "%{v:-V} %{Wa,*:%*}" | ||
| 156 | +#define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO) | ||
| 157 | Index: gcc-4.5.3/gcc/config/rs6000/lynx.h | ||
| 158 | =================================================================== | ||
| 159 | --- gcc-4.5.3.orig/gcc/config/rs6000/lynx.h 2007-08-02 03:49:31.000000000 -0700 | ||
| 160 | +++ gcc-4.5.3/gcc/config/rs6000/lynx.h 2011-06-16 15:01:07.945285352 -0700 | ||
| 161 | @@ -1,5 +1,5 @@ | ||
| 162 | /* Definitions for Rs6000 running LynxOS. | ||
| 163 | - Copyright (C) 1995, 1996, 2000, 2002, 2003, 2004, 2005, 2007 | ||
| 164 | + Copyright (C) 1995, 1996, 2000, 2002, 2003, 2004, 2005, 2007, 2010 | ||
| 165 | Free Software Foundation, Inc. | ||
| 166 | Contributed by David Henkel-Wallace, Cygnus Support (gumby@cygnus.com) | ||
| 167 | Rewritten by Adam Nemet, LynuxWorks Inc. | ||
| 168 | @@ -105,6 +105,8 @@ | ||
| 169 | #undef HAVE_AS_TLS | ||
| 170 | #define HAVE_AS_TLS 0 | ||
| 171 | |||
| 172 | +#define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO) | ||
| 173 | + | ||
| 174 | #ifdef CRT_BEGIN | ||
| 175 | /* This function is part of crtbegin*.o which is at the beginning of | ||
| 176 | the link and is called from .fini which is usually toward the end | ||
| 177 | Index: gcc-4.5.3/gcc/config/rs6000/netbsd.h | ||
| 178 | =================================================================== | ||
| 179 | --- gcc-4.5.3.orig/gcc/config/rs6000/netbsd.h 2009-02-20 07:20:38.000000000 -0800 | ||
| 180 | +++ gcc-4.5.3/gcc/config/rs6000/netbsd.h 2011-06-16 15:01:07.945285352 -0700 | ||
| 181 | @@ -1,6 +1,6 @@ | ||
| 182 | /* Definitions of target machine for GNU compiler, | ||
| 183 | for PowerPC NetBSD systems. | ||
| 184 | - Copyright 2002, 2003, 2007, 2008 Free Software Foundation, Inc. | ||
| 185 | + Copyright 2002, 2003, 2007, 2008, 2010 Free Software Foundation, Inc. | ||
| 186 | Contributed by Wasabi Systems, Inc. | ||
| 187 | |||
| 188 | This file is part of GCC. | ||
| 189 | @@ -89,3 +89,5 @@ | ||
| 190 | |||
| 191 | #undef TARGET_VERSION | ||
| 192 | #define TARGET_VERSION fprintf (stderr, " (NetBSD/powerpc ELF)"); | ||
| 193 | + | ||
| 194 | +#define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO) | ||
| 195 | Index: gcc-4.5.3/gcc/config/rs6000/sysv4.h | ||
| 196 | =================================================================== | ||
| 197 | --- gcc-4.5.3.orig/gcc/config/rs6000/sysv4.h 2011-06-15 21:18:57.000000000 -0700 | ||
| 198 | +++ gcc-4.5.3/gcc/config/rs6000/sysv4.h 2011-06-16 15:01:07.945285352 -0700 | ||
| 199 | @@ -293,6 +293,10 @@ | ||
| 200 | #define RESTORE_FP_PREFIX "_restfpr_" | ||
| 201 | #define RESTORE_FP_SUFFIX "" | ||
| 202 | |||
| 203 | +/* Type used for size_t, as a string used in a declaration. */ | ||
| 204 | +#undef SIZE_TYPE | ||
| 205 | +#define SIZE_TYPE "unsigned int" | ||
| 206 | + | ||
| 207 | /* Type used for ptrdiff_t, as a string used in a declaration. */ | ||
| 208 | #define PTRDIFF_TYPE "int" | ||
| 209 | |||
| 210 | @@ -588,9 +592,8 @@ | ||
| 211 | /* Override svr4.h definition. */ | ||
| 212 | #undef ASM_SPEC | ||
| 213 | #define ASM_SPEC "%(asm_cpu) \ | ||
| 214 | -%{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \ | ||
| 215 | -SVR4_ASM_SPEC \ | ||
| 216 | -"%{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} \ | ||
| 217 | +%{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}} \ | ||
| 218 | +%{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} \ | ||
| 219 | %{memb|msdata=eabi: -memb} \ | ||
| 220 | %{mlittle|mlittle-endian:-mlittle; \ | ||
| 221 | mbig|mbig-endian :-mbig; \ | ||
| 222 | @@ -1127,3 +1130,5 @@ | ||
| 223 | |||
| 224 | /* This target uses the sysv4.opt file. */ | ||
| 225 | #define TARGET_USES_SYSV4_OPT 1 | ||
| 226 | + | ||
| 227 | +#undef DBX_REGISTER_NUMBER | ||
