summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-09-19 11:34:49 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-09-19 08:26:10 +0200
commit549f974a5df4c3e117d269007e9b671cf4e925f9 (patch)
treef61b316be618772acfd52c4bb78fef9312259fcd /meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch
parent0f149196c1de01bd557a0dfbba169d73c0d93ad3 (diff)
downloadmeta-openembedded-549f974a5df4c3e117d269007e9b671cf4e925f9.tar.gz
gcc-4.5: Upgrade to latest FSF 4.5 branch and bring in latest linaro patches
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/linaro/gcc-4.5-linaro-r99537.patch')
-rw-r--r--meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch105
1 files changed, 105 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch
new file mode 100644
index 000000000..b8584334c
--- /dev/null
+++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99537.patch
@@ -0,0 +1,105 @@
12011-08-16 Matthias Klose <doko@ubuntu.com>
2
3 Backport from FSF:
4
5 2010-12-20 Joseph Myers <joseph@codesourcery.com>
6
7 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
8 (DBX_REGISTER_NUMBER): Define.
9 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define.
10 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define.
11 * config/rs6000/sysv4.h (SIZE_TYPE): Define.
12 (ASM_SPEC): Define without using SVR4_ASM_SPEC.
13 (DBX_REGISTER_NUMBER): Undefine.
14 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
15 powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*,
16 powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*,
17 powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*,
18 powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
19 powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*,
20 powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h.
21
22=== modified file 'gcc/config.gcc'
23Index: gcc-4_5-branch/gcc/config.gcc
24===================================================================
25--- gcc-4_5-branch.orig/gcc/config.gcc 2011-09-16 23:01:43.000000000 -0700
26+++ gcc-4_5-branch/gcc/config.gcc 2011-09-17 10:54:32.763299018 -0700
27@@ -2028,7 +2028,7 @@ powerpc-*-rtems*)
28 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm"
29 ;;
30 powerpc-*-linux* | powerpc64-*-linux*)
31- tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
32+ tm_file="${tm_file} dbxelf.h elfos.h linux.h freebsd-spec.h rs6000/sysv4.h"
33 extra_options="${extra_options} rs6000/sysv4.opt"
34 tmake_file="t-dfprules rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
35 maybe_biarch=yes
36Index: gcc-4_5-branch/gcc/config/freebsd-spec.h
37===================================================================
38--- gcc-4_5-branch.orig/gcc/config/freebsd-spec.h 2011-06-16 17:59:03.000000000 -0700
39+++ gcc-4_5-branch/gcc/config/freebsd-spec.h 2011-09-17 10:54:32.763299018 -0700
40@@ -154,6 +154,7 @@ is built with the --enable-threads confi
41 #endif
42
43 #if defined(HAVE_LD_EH_FRAME_HDR)
44+#undef LINK_EH_SPEC
45 #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
46 #endif
47
48Index: gcc-4_5-branch/gcc/config/rs6000/linux64.h
49===================================================================
50--- gcc-4_5-branch.orig/gcc/config/rs6000/linux64.h 2011-09-16 23:01:43.000000000 -0700
51+++ gcc-4_5-branch/gcc/config/rs6000/linux64.h 2011-09-17 10:56:01.043298999 -0700
52@@ -339,6 +339,9 @@ extern int dot_symbols;
53
54 #undef LINK_OS_DEFAULT_SPEC
55 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
56+#undef LINUX_DYNAMIC_LINKER32
57+#undef LINUX_DYNAMIC_LINKER64
58+#undef CHOOSE_DYNAMIC_LINKER
59
60 #define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld.so.1"
61 #define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64.so.1"
62Index: gcc-4_5-branch/gcc/config/rs6000/sysv4.h
63===================================================================
64--- gcc-4_5-branch.orig/gcc/config/rs6000/sysv4.h 2011-09-16 23:01:44.000000000 -0700
65+++ gcc-4_5-branch/gcc/config/rs6000/sysv4.h 2011-09-17 10:54:32.773299018 -0700
66@@ -617,6 +617,7 @@ SVR4_ASM_SPEC \
67 #define CC1_SECURE_PLT_DEFAULT_SPEC ""
68 #endif
69
70+#undef CC1_SPEC
71 /* Pass -G xxx to the compiler and set correct endian mode. */
72 #define CC1_SPEC "%{G*} %(cc1_cpu) \
73 %{mlittle|mlittle-endian: %(cc1_endian_little); \
74@@ -900,22 +901,13 @@ SVR4_ASM_SPEC \
75 #define LINK_START_LINUX_SPEC ""
76
77 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
78-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
79-#if DEFAULT_LIBC == LIBC_UCLIBC
80-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
81-#elif DEFAULT_LIBC == LIBC_GLIBC
82-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
83-#else
84-#error "Unsupported DEFAULT_LIBC"
85-#endif
86-#define LINUX_DYNAMIC_LINKER \
87- CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
88
89 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
90 %{rdynamic:-export-dynamic} \
91 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
92
93 #if defined(HAVE_LD_EH_FRAME_HDR)
94+# undef LINK_EH_SPEC
95 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
96 #endif
97
98@@ -1110,6 +1102,7 @@ ncrtn.o%s"
99 be stacked, so that invocations of #pragma pack(pop)' will return
100 to the previous value. */
101
102+#undef HANDLE_PRAGMA_PACK_PUSH_POP
103 #define HANDLE_PRAGMA_PACK_PUSH_POP 1
104
105 /* Select a format to encode pointers in exception handling data. CODE