summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.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/0009-cpp-honor-sysroot.patch
parent89efab2850766378d89579c094670357775b69b6 (diff)
downloadpoky-840f0c69830ff499699eb1376a32254fadf02c17.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/0009-cpp-honor-sysroot.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch b/meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch
index 37f26f0728..1c0f381859 100644
--- a/meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch
+++ b/meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch
@@ -22,13 +22,14 @@ gcc/ChangeLog:
22 * gcc.c: Pass sysroot options to cpp for preprocessed source 22 * gcc.c: Pass sysroot options to cpp for preprocessed source
23 23
24Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 24Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com> [ported to gcc 12]
25 26
26[YOCTO #2074] 27[YOCTO #2074]
27 28
28Upstream-Status: Submitted [https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582725.html] 29Upstream-Status: Submitted [https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582725.html]
29--- 30---
30 gcc/cp/lang-specs.h | 2 +- 31 gcc/cp/lang-specs.h | 2 +-
31 gcc/gcc.c | 2 +- 32 gcc/gcc.cc | 2 +-
32 2 files changed, 2 insertions(+), 2 deletions(-) 33 2 files changed, 2 insertions(+), 2 deletions(-)
33 34
34Index: gcc-11.2.0/gcc/cp/lang-specs.h 35Index: gcc-11.2.0/gcc/cp/lang-specs.h
@@ -44,10 +45,10 @@ Index: gcc-11.2.0/gcc/cp/lang-specs.h
44 " %{!fsyntax-only:" 45 " %{!fsyntax-only:"
45 " %{fmodule-only:%{!S:-o %g.s%V}}" 46 " %{fmodule-only:%{!S:-o %g.s%V}}"
46 " %{!fmodule-only:%{!fmodule-header*:%(invoke_as)}}}" 47 " %{!fmodule-only:%{!fmodule-header*:%(invoke_as)}}}"
47Index: gcc-11.2.0/gcc/gcc.c 48Index: gcc-11.2.0/gcc/gcc.cc
48=================================================================== 49===================================================================
49--- gcc-11.2.0.orig/gcc/gcc.c 50--- gcc-11.2.0.orig/gcc/gcc.cc
50+++ gcc-11.2.0/gcc/gcc.c 51+++ gcc-11.2.0/gcc/gcc.cc
51@@ -1470,7 +1470,7 @@ static const struct compiler default_com 52@@ -1470,7 +1470,7 @@ static const struct compiler default_com
52 %W{o*:--output-pch=%*}}%V}}}}}}}", 0, 0, 0}, 53 %W{o*:--output-pch=%*}}%V}}}}}}}", 0, 0, 0},
53 {".i", "@cpp-output", 0, 0, 0}, 54 {".i", "@cpp-output", 0, 0, 0},