diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-12-03 14:34:53 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-12-05 17:32:10 +0100 |
commit | 19d75997848cd776248fd9e4d48f387569067d93 (patch) | |
tree | 4a722ddaca7ef4510ec44cdd28027f1865244adc /patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch | |
parent | c53051c921cd1b92ae2233e3654bc759e27f3098 (diff) | |
download | OSELAS.Toolchain-19d75997848cd776248fd9e4d48f387569067d93.tar.gz OSELAS.Toolchain-19d75997848cd776248fd9e4d48f387569067d93.tar.xz |
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>
Diffstat (limited to 'patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch')
-rw-r--r-- | patches/gcc-4.7.2/0500-Fix-Argument-list-too-long-error.patch | 37 |
1 files changed, 37 insertions, 0 deletions
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 \ |