summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>2022-04-07 15:26:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-09 19:50:45 +0100
commita8095c99ab30e96e620c2e0ef0aec8bc54753894 (patch)
treecb54d721269106c9f9badaee130c034eb3f96dfc /meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch
parent89efab2850766378d89579c094670357775b69b6 (diff)
downloadpoky-a8095c99ab30e96e620c2e0ef0aec8bc54753894.tar.gz
gcc: upgrade 11.2 -> current 12 snapshotuninative-3.6master-uninative
gcc 12 is expected to be released this month or early next month. Update so we're prepared. This keeps/ports all patches currently applied to 11.2 that haven't landed upstream yet. [v2: Back out the zephyr DWARF-4 workaround] (From OE-Core rev: 540116ca70fb71ac489b61b74b3a397ff92f27e2) Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch b/meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch
deleted file mode 100644
index ebee30bbd6..0000000000
--- a/meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From: Richard Purdie <richard.purdie@linuxfoundation.org>
2Subject: [PATCH 2/5] gcc: Fix "argument list too long" from install-plugins
3
4When building in longer build paths (200+ characters), the
5"echo $(PLUGIN_HEADERS)" from the install-plugins target would cause an
6"argument list too long error" on some systems.
7
8Avoid this by calling make's sort function on the list which removes
9duplicates and stops the overflow from reaching the echo command.
10The original sort is left to handle the the .h and .def files.
11
122021-10-26 Richard Purdie <richard.purdie@linuxfoundation.org>
13
14gcc/ChangeLog:
15
16 * Makefile.in: Fix "argument list too long" from install-plugins
17
18Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
19
20Submitted [https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582722.html]
21Upstream-Status: Backport [https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=66e157188bd2f789809e17e85f917534c9381599]
22---
23 gcc/Makefile.in | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26Index: gcc-11.2.0/gcc/Makefile.in
27===================================================================
28--- gcc-11.2.0.orig/gcc/Makefile.in
29+++ gcc-11.2.0/gcc/Makefile.in
30@@ -3678,7 +3678,7 @@ install-plugin: installdirs lang.install
31 # We keep the directory structure for files in config, common/config or
32 # c-family and .def files. All other files are flattened to a single directory.
33 $(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
34- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
35+ headers=`echo $(sort $(PLUGIN_HEADERS)) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
36 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
37 for file in $$headers; do \
38 if [ -f $$file ] ; then \