summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-12-03 14:34:53 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-12-05 17:32:10 +0100
commit19d75997848cd776248fd9e4d48f387569067d93 (patch)
tree4a722ddaca7ef4510ec44cdd28027f1865244adc
parentc53051c921cd1b92ae2233e3654bc759e27f3098 (diff)
downloadOSELAS.Toolchain-19d75997848cd776248fd9e4d48f387569067d93.tar.gz
gcc-4.7.2: update and cleanup patches
Removed patches: * 0101-fix-arith_adjacentmem-LDM-splitting-code.patch: Obsolete. The bug report states that this is fixed since 4.5. * 0300-gcc-trampolinewarn.patch Does not fix anything and annoys people. * 0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch Old gentoo patch that never reached mainline. It's just an optimization anyways. New patches: * 0102-libgcc-reorder-tmake_file-for-arm-uclinux.patch Needed to build *-uclinux* toolchains. * 0400-add-support-for-arm-linux-eabi-triplets-useful-for-a.patch From Debian. Needed to build arm-*-linux-gnueabihf toolchains. * 0500-Fix-Argument-list-too-long-error.patch From OpenEmbedded. Fixes "Argument list too long". This can happen for longer the path to the workspace. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/gcc-4.7.2/0101-fix-arith_adjacentmem-LDM-splitting-code.patch39
-rw-r--r--patches/gcc-4.7.2/0101-gcc-i386-use-pure64-CLFS-patch.patch (renamed from patches/gcc-4.7.2/0304-gcc-i386-use-pure64-CLFS-patch.patch)0
-rw-r--r--patches/gcc-4.7.2/0102-libgcc-reorder-tmake_file-for-arm-uclinux.patch34
-rw-r--r--patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch46
-rw-r--r--patches/gcc-4.7.2/0300-libiberty-pic.patch (renamed from patches/gcc-4.7.2/0302-libiberty-pic.patch)0
-rw-r--r--patches/gcc-4.7.2/0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch83
-rw-r--r--patches/gcc-4.7.2/0301-libstdc-pic.patch (renamed from patches/gcc-4.7.2/0303-libstdc-pic.patch)0
-rw-r--r--patches/gcc-4.7.2/0400-add-support-for-arm-linux-eabi-triplets-useful-for-a.patch137
-rw-r--r--patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch37
-rw-r--r--patches/gcc-4.7.2/series16
10 files changed, 217 insertions, 175 deletions
diff --git a/patches/gcc-4.7.2/0101-fix-arith_adjacentmem-LDM-splitting-code.patch b/patches/gcc-4.7.2/0101-fix-arith_adjacentmem-LDM-splitting-code.patch
deleted file mode 100644
index eae6d15..0000000
--- a/patches/gcc-4.7.2/0101-fix-arith_adjacentmem-LDM-splitting-code.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From: Robert Schwebel <r.schwebel@pengutronix.de>
-Date: Tue, 1 Nov 2011 18:25:07 +0100
-Subject: [PATCH] fix arith_adjacentmem LDM splitting code
-
-This is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39429
-
-This is the patch fromt the gcc bugzilla.
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
----
- gcc/config/arm/arm.md | 15 +++++++++++++++
- 1 file changed, 15 insertions(+)
-
-diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
-index b21d0d2..fa9f93d 100644
---- a/gcc/config/arm/arm.md
-+++ b/gcc/config/arm/arm.md
-@@ -10471,6 +10471,21 @@
- else
- {
- /* Offset is out of range for a single add, so use two ldr. */
-+
-+ /* Swap the ldrs if the first ldr would clobber the shared base_reg. */
-+ if (REGNO (ldm[1]) == REGNO (base_reg))
-+ {
-+ rtx tmp_reg;
-+ HOST_WIDE_INT tmp_val;
-+
-+ tmp_reg = ldm[1];
-+ ldm[1] = ldm[2];
-+ ldm[2] = tmp_reg;
-+ tmp_val = val1;
-+ val1 = val2;
-+ val2 = tmp_val;
-+ }
-+
- ops[0] = ldm[1];
- ops[1] = base_reg;
- ops[2] = GEN_INT (val1);
diff --git a/patches/gcc-4.7.2/0304-gcc-i386-use-pure64-CLFS-patch.patch b/patches/gcc-4.7.2/0101-gcc-i386-use-pure64-CLFS-patch.patch
index 455593f..455593f 100644
--- a/patches/gcc-4.7.2/0304-gcc-i386-use-pure64-CLFS-patch.patch
+++ b/patches/gcc-4.7.2/0101-gcc-i386-use-pure64-CLFS-patch.patch
diff --git a/patches/gcc-4.7.2/0102-libgcc-reorder-tmake_file-for-arm-uclinux.patch b/patches/gcc-4.7.2/0102-libgcc-reorder-tmake_file-for-arm-uclinux.patch
new file mode 100644
index 0000000..f35a02a
--- /dev/null
+++ b/patches/gcc-4.7.2/0102-libgcc-reorder-tmake_file-for-arm-uclinux.patch
@@ -0,0 +1,34 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Wed, 5 Dec 2012 17:17:52 +0100
+Subject: [PATCH] libgcc: reorder $tmake_file for arm*-*-uclinux*
+
+arm/t-arm must be first in the list. It overwrites variables instead of
+appending, so anything set before is lost.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ libgcc/config.host | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libgcc/config.host b/libgcc/config.host
+index ef9791b..bcb30fa 100644
+--- a/libgcc/config.host
++++ b/libgcc/config.host
+@@ -339,7 +339,7 @@ arm*-*-linux*) # ARM GNU/Linux with ELF
+ tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
+ ;;
+ arm*-*-uclinux*) # ARM ucLinux
+- tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
++ tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
+ case ${host} in
+ arm*-*-uclinux*eabi)
+ tmake_file="${tmake_file} arm/t-bpabi"
+@@ -347,7 +347,7 @@ arm*-*-uclinux*) # ARM ucLinux
+ unwind_header=config/arm/unwind-arm.h
+ ;;
+ esac
+- tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
++ tmake_file="$tmake_file arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
+ extra_parts="$extra_parts crti.o crtn.o"
+ ;;
+ arm*-*-ecos-elf)
diff --git a/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch b/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch
deleted file mode 100644
index e141938..0000000
--- a/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From: "Kevin F. Quinn" <kevquinn@gentoo.org>
-Date: Tue, 1 Nov 2011 18:25:08 +0100
-Subject: [PATCH] gcc trampolinewarn
-
-Taken from gentoo, original description:
-
-This trivial patch causes gcc to emit a warning whenever it generates a
-trampoline. These are otherwise hard to locate. It is rigged to default
-ON - to have it default to OFF remove the text 'Init(1)' from the
-common.opt patch, leaving just 'Common Var(warn_trampolines)'.
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
----
- gcc/builtins.c | 3 +++
- gcc/common.opt | 4 ++++
- 2 files changed, 7 insertions(+)
-
-diff --git a/gcc/builtins.c b/gcc/builtins.c
-index 04980cc..fb3c837 100644
---- a/gcc/builtins.c
-+++ b/gcc/builtins.c
-@@ -4535,6 +4535,9 @@ expand_builtin_va_copy (tree exp)
- emit_block_move (dstb, srcb, size, BLOCK_OP_NORMAL);
- }
-
-+ if (warn_trampolines)
-+ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)");
-+
- return const0_rtx;
- }
-
-diff --git a/gcc/common.opt b/gcc/common.opt
-index 033fbe0..2946022 100644
---- a/gcc/common.opt
-+++ b/gcc/common.opt
-@@ -646,6 +646,10 @@ Wtype-limits
- Common Var(warn_type_limits) Init(-1) Warning
- Warn if a comparison is always true or always false due to the limited range of the data type
-
-+Wtrampolines
-+Common Var(warn_trampolines) Init(1)
-+Warn whenever a trampoline is generated
-+
- Wuninitialized
- Common Var(warn_uninitialized) Init(-1) Warning
- Warn about uninitialized automatic variables
diff --git a/patches/gcc-4.7.2/0302-libiberty-pic.patch b/patches/gcc-4.7.2/0300-libiberty-pic.patch
index 6ac495a..6ac495a 100644
--- a/patches/gcc-4.7.2/0302-libiberty-pic.patch
+++ b/patches/gcc-4.7.2/0300-libiberty-pic.patch
diff --git a/patches/gcc-4.7.2/0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch b/patches/gcc-4.7.2/0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch
deleted file mode 100644
index f496d86..0000000
--- a/patches/gcc-4.7.2/0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-From: Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
-Date: Tue, 1 Nov 2011 18:25:08 +0100
-Subject: [PATCH] flatten switch-stmt into if-else chain for -Os
-
-This is http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00927.html
-
-Hi,
-
-The attached patch makes sure that we create smaller object code for
-simple switch statements. We just make sure to flatten the switch
-statement into an if-else chain, basically.
-
-This fixes a size-regression as compared to gcc-3.4, as can be seen
-below.
-
-2007-04-15 Bernhard Fischer <..>
-
- * stmt.c (expand_case): Do not create a complex binary tree when
- optimizing for size but rather use the simple ordered list.
- (emit_case_nodes): do not emit jumps to the default_label when
- optimizing for size.
-
-Not regtested so far.
-Comments?
-
-Attached is the test switch.c mentioned below.
-
-$ for i in 2.95 3.3 3.4 4.0 4.1 4.2.orig-HEAD 4.3.orig-HEAD 4.3-HEAD;do
-gcc-$i -DCHAIN -Os -o switch-CHAIN-$i.o -c switch.c ;done
-$ for i in 2.95 3.3 3.4 4.0 4.1 4.2.orig-HEAD 4.3.orig-HEAD 4.3-HEAD;do
-gcc-$i -UCHAIN -Os -o switch-$i.o -c switch.c ;done
-
-$ size switch-*.o
- text data bss dec hex filename
- 169 0 0 169 a9 switch-2.95.o
- 115 0 0 115 73 switch-3.3.o
- 103 0 0 103 67 switch-3.4.o
- 124 0 0 124 7c switch-4.0.o
- 124 0 0 124 7c switch-4.1.o
- 124 0 0 124 7c switch-4.2.orig-HEAD.o
- 95 0 0 95 5f switch-4.3-HEAD.o
- 124 0 0 124 7c switch-4.3.orig-HEAD.o
- 166 0 0 166 a6 switch-CHAIN-2.95.o
- 111 0 0 111 6f switch-CHAIN-3.3.o
- 95 0 0 95 5f switch-CHAIN-3.4.o
- 95 0 0 95 5f switch-CHAIN-4.0.o
- 95 0 0 95 5f switch-CHAIN-4.1.o
- 95 0 0 95 5f switch-CHAIN-4.2.orig-HEAD.o
- 95 0 0 95 5f switch-CHAIN-4.3-HEAD.o
- 95 0 0 95 5f switch-CHAIN-4.3.orig-HEAD.o
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
----
- gcc/stmt.c | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/gcc/stmt.c b/gcc/stmt.c
-index 93d643a..7bf3c04 100644
---- a/gcc/stmt.c
-+++ b/gcc/stmt.c
-@@ -2397,7 +2397,13 @@ expand_case (gimple stmt)
- default code is emitted. */
-
- use_cost_table = estimate_case_costs (case_list);
-- balance_case_nodes (&case_list, NULL);
-+
-+ /* When optimizing for size, we want a straight list to avoid
-+ jumps as much as possible. This basically creates an if-else
-+ chain. */
-+
-+ if (!optimize_size)
-+ balance_case_nodes (&case_list, NULL);
- emit_case_nodes (index, case_list, default_label, index_type);
- if (default_label)
- emit_jump (default_label);
-@@ -2965,6 +2971,7 @@ emit_case_nodes (rtx index, case_node_ptr node, rtx default_label,
- {
- if (!node_has_low_bound (node, index_type))
- {
-+ if (!optimize_size) /* don't jl to the .default_label. */
- emit_cmp_and_jump_insns (index,
- convert_modes
- (mode, imode,
diff --git a/patches/gcc-4.7.2/0303-libstdc-pic.patch b/patches/gcc-4.7.2/0301-libstdc-pic.patch
index 2166828..2166828 100644
--- a/patches/gcc-4.7.2/0303-libstdc-pic.patch
+++ b/patches/gcc-4.7.2/0301-libstdc-pic.patch
diff --git a/patches/gcc-4.7.2/0400-add-support-for-arm-linux-eabi-triplets-useful-for-a.patch b/patches/gcc-4.7.2/0400-add-support-for-arm-linux-eabi-triplets-useful-for-a.patch
new file mode 100644
index 0000000..a453e35
--- /dev/null
+++ b/patches/gcc-4.7.2/0400-add-support-for-arm-linux-eabi-triplets-useful-for-a.patch
@@ -0,0 +1,137 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Mon, 3 Dec 2012 13:49:03 +0100
+Subject: [PATCH] add support for arm-linux-*eabi* triplets; useful for armhf
+
+This is needed to build with e.g. --target=arm-cortexa8-linux-gnueabihf
+Taken from Debian.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ gcc/ada/gcc-interface/Makefile.in | 2 +-
+ gcc/config.gcc | 4 ++--
+ gcc/testsuite/lib/target-supports.exp | 4 ++--
+ libgcc/config.host | 2 +-
+ libjava/configure.ac | 2 +-
+ libstdc++-v3/configure.host | 2 +-
+ .../testsuite/20_util/make_signed/requirements/typedefs-2.cc | 2 +-
+ .../testsuite/20_util/make_unsigned/requirements/typedefs-2.cc | 2 +-
+ 8 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in
+index f9e7eda..a8ee610 100644
+--- a/gcc/ada/gcc-interface/Makefile.in
++++ b/gcc/ada/gcc-interface/Makefile.in
+@@ -1867,7 +1867,7 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
+ LIBRARY_VERSION := $(LIB_VERSION)
+ endif
+
+-ifeq ($(strip $(filter-out arm% linux-gnueabi,$(arch) $(osys)-$(word 4,$(targ)))),)
++ifeq ($(strip $(filter-out arm%-linux,$(arch)-$(osys)) $(if $(findstring eabi,$(word 4,$(targ))),,$(word 4,$(targ)))),)
+ LIBGNAT_TARGET_PAIRS = \
+ a-intnam.ads<a-intnam-linux.ads \
+ s-inmaop.adb<s-inmaop-posix.adb \
+diff --git a/gcc/config.gcc b/gcc/config.gcc
+index 5fcd192..fbacc3d 100644
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -850,7 +850,7 @@ arm*-*-linux*) # ARM GNU/Linux with ELF
+ esac
+ tmake_file="${tmake_file} arm/t-arm"
+ case ${target} in
+- arm*-*-linux-*eabi)
++ arm*-*-linux-*eabi*)
+ tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
+ tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
+ # Define multilib configuration for arm-linux-androideabi.
+@@ -877,7 +877,7 @@ arm*-*-uclinux*) # ARM ucLinux
+ tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h"
+ tmake_file="arm/t-arm arm/t-arm-elf"
+ case ${target} in
+- arm*-*-uclinux*eabi)
++ arm*-*-uclinux*eabi*)
+ tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h"
+ tmake_file="$tmake_file arm/t-bpabi"
+ # The BPABI long long divmod functions return a 128-bit value in
+diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
+index 63dc0be..fcbdb62 100644
+--- a/gcc/testsuite/lib/target-supports.exp
++++ b/gcc/testsuite/lib/target-supports.exp
+@@ -3860,7 +3860,7 @@ proc check_effective_target_sync_int_long { } {
+ || [istarget i?86-*-*]
+ || [istarget x86_64-*-*]
+ || [istarget alpha*-*-*]
+- || [istarget arm*-*-linux-gnueabi]
++ || [istarget arm*-*-linux-*eabi*]
+ || [istarget bfin*-*linux*]
+ || [istarget hppa*-*linux*]
+ || [istarget s390*-*-*]
+@@ -3890,7 +3890,7 @@ proc check_effective_target_sync_char_short { } {
+ || [istarget i?86-*-*]
+ || [istarget x86_64-*-*]
+ || [istarget alpha*-*-*]
+- || [istarget arm*-*-linux-gnueabi]
++ || [istarget arm*-*-linux-*eabi*]
+ || [istarget hppa*-*linux*]
+ || [istarget s390*-*-*]
+ || [istarget powerpc*-*-*]
+diff --git a/libgcc/config.host b/libgcc/config.host
+index ef9791b..e9da271 100644
+--- a/libgcc/config.host
++++ b/libgcc/config.host
+@@ -327,7 +327,7 @@ arm*-*-netbsdelf*)
+ arm*-*-linux*) # ARM GNU/Linux with ELF
+ tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
+ case ${host} in
+- arm*-*-linux-*eabi)
++ arm*-*-linux-*eabi*)
+ tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
+ tm_file="$tm_file arm/bpabi-lib.h"
+ unwind_header=config/arm/unwind-arm.h
+diff --git a/libjava/configure.ac b/libjava/configure.ac
+index 8a25a42..0c71b48 100644
+--- a/libjava/configure.ac
++++ b/libjava/configure.ac
+@@ -931,7 +931,7 @@ case "${host}" in
+ # on Darwin -single_module speeds up loading of the dynamic libraries.
+ extra_ldflags_libjava=-Wl,-single_module
+ ;;
+-arm*linux*eabi)
++arm*-*-linux-*eabi*)
+ # Some of the ARM unwinder code is actually in libstdc++. We
+ # could in principle replicate it in libgcj, but it's better to
+ # have a dependency on libstdc++.
+diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
+index ca4d819..b0e2cd9 100644
+--- a/libstdc++-v3/configure.host
++++ b/libstdc++-v3/configure.host
+@@ -340,7 +340,7 @@ case "${host}" in
+ fi
+ esac
+ case "${host}" in
+- arm*-*-linux-*eabi)
++ arm*-*-linux-*eabi*)
+ port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
+ ;;
+ esac
+diff --git a/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-2.cc b/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-2.cc
+index adf3af4..9c43171 100644
+--- a/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-2.cc
++++ b/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs-2.cc
+@@ -1,5 +1,5 @@
+ // { dg-options "-std=gnu++0x -funsigned-char -fshort-enums" }
+-// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
++// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux-*eabi* } }
+
+ // 2007-05-03 Benjamin Kosnik <bkoz@redhat.com>
+ //
+diff --git a/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-2.cc b/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-2.cc
+index a1465d3..5a81789 100644
+--- a/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-2.cc
++++ b/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-2.cc
+@@ -1,5 +1,5 @@
+ // { dg-options "-std=gnu++0x -funsigned-char -fshort-enums" }
+-// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
++// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux-*eabi* } }
+
+ // 2007-05-03 Benjamin Kosnik <bkoz@redhat.com>
+ //
diff --git a/patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch b/patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch
new file mode 100644
index 0000000..8d5eeae
--- /dev/null
+++ b/patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch
@@ -0,0 +1,37 @@
+From: Robert Yang <liezhi.yang@windriver.com>
+Date: Wed, 5 Dec 2012 17:20:37 +0100
+Subject: [PATCH] Fix "Argument list too long" error
+
+There would be an "Argument list too long" error when the
+build directory is longer than 200, this is caused by:
+
+headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`
+
+The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle
+it, use the $(sort list) of GNU make which can handle the too long list
+would fix the problem, the header would be short enough after sorted.
+The "tr ' ' '\012'" was used for translating the space to "\n", the
+$(sort list) doesn't need this.
+
+Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
+
+This was taken from OE.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ gcc/Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gcc/Makefile.in b/gcc/Makefile.in
+index 5c3514d..66c013e 100644
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -4597,7 +4597,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
+ # We keep the directory structure for files in config or c-family and .def
+ # files. All other files are flattened to a single directory.
+ $(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
+- headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`; \
++ headers="$(sort $(PLUGIN_HEADERS))"; \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
+ for file in $$headers; do \
+ if [ -f $$file ] ; then \
diff --git a/patches/gcc-4.7.2/series b/patches/gcc-4.7.2/series
index 949ab74..b053a79 100644
--- a/patches/gcc-4.7.2/series
+++ b/patches/gcc-4.7.2/series
@@ -2,16 +2,18 @@
#tag:base
#tag:OSELAS.toolchain --start-number 100
0100-no-host-includes.patch
-0101-fix-arith_adjacentmem-LDM-splitting-code.patch
+0101-gcc-i386-use-pure64-CLFS-patch.patch
+0102-libgcc-reorder-tmake_file-for-arm-uclinux.patch
#tag:uclibc --start-number 200
0200-also-match-uclibc-when-checking-host-os.patch
0201-missing-execinfo.h.patch
0202-c99-snprintf.patch
0203-libmudflap-susv3-legacy.patch
#tag:gentoo --start-number 300
-0300-gcc-trampolinewarn.patch
-0301-flatten-switch-stmt-into-if-else-chain-for-Os.patch
-0302-libiberty-pic.patch
-0303-libstdc-pic.patch
-0304-gcc-i386-use-pure64-CLFS-patch.patch
-# bf752542478bf601b71e50608d1485e1 - git-ptx-patches magic
+0300-libiberty-pic.patch
+0301-libstdc-pic.patch
+#tag:debian --start-number 400
+0400-add-support-for-arm-linux-eabi-triplets-useful-for-a.patch
+#tag:OpenEmbedded --start-number 500
+0500-Fix-Argument-list-too-long-error.patch
+# d177996e61f35f8619c8fd1b51981c5c - git-ptx-patches magic