gcc: Update patches submitted/merged upstream
PATCH v2 1/1 gcc: Update patches submitted/merged upstream
I took 5 of our patches and submitted to upstream gcc. This highlighted that patches 0026 and 0018 should be merged together and some tweaks were made to try and make it acceptable to upstream. The other patches have their headers updated to match what was submitted.
The libstdc++ option patch was also cleaned up ready for upstream as the documentation wasn't quite right.
The CXXFLAGS_FOR_BUILD piece of 0026 is separated out into a new patch which can be submitted separately to upstream.
Two of the patches have been merged, status updated accordinly.
--- meta/recipes-devtools/gcc/gcc-11.2.inc | 2 +- .../gcc/gcc/0005-optional-libstdc.patch | 120 +++++----- ...ains-something-unsupported-by-the-bu.patch | 61 +++++ .../gcc/gcc/0009-cpp-honor-sysroot.patch | 56 +++-- ...gcc-Fix-argument-list-too-long-error.patch | 43 ++-- .../gcc/gcc/0018-export-CPP.patch | 225 +++++++++++++++--- ...ous-_FOR_BUILD-and-related-variables.patch | 134 ----------- ...027-nios2-Define-MUSL_DYNAMIC_LINKER.patch | 28 ++- 8 files changed, 374 insertions(+), 295 deletions(-) create mode 100644 meta/recipes-devtools/gcc/gcc/0006-If-CXXFLAGS-contains-something-unsupported-by-the-bu.patch delete mode 100644 meta/recipes-devtools/gcc/gcc/0026-Fix-various-_FOR_BUILD-and-related-variables.patch
meta/recipes-devtools/gcc/gcc-11.2.inc +1 -1
@@ -51,7 +51,6 @@ SRC_URI = "\ file://0023-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ file://0024-handle-sysroot-support-for-nativesdk-gcc.patch \ file://0025-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ - file://0026-Fix-various-_FOR_BUILD-and-related-variables.patch \ file://0027-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ file://0028-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ file://0029-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \
@@ -64,6 +63,7 @@ SRC_URI = "\ file://0036-mingw32-Enable-operation_not_supported.patch \ file://0037-libatomic-Do-not-enforce-march-on-aarch64.patch \ file://0041-apply-debug-prefix-maps-before-checksumming-DIEs.patch \ + file://0006-If-CXXFLAGS-contains-something-unsupported-by-the-bu.patch \ " SRC_URI[sha256sum] = "d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b"
meta/recipes-devtools/gcc/gcc/0005-optional-libstdc.patch +58 -62
168 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0006-If-CXXFLAGS-contains-something-unsupported-by-the-bu.patch new file +61 -0
61 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch +31 -25
77 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch +19 -24
56 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0018-export-CPP.patch +187 -38
237 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0026-Fix-various-_FOR_BUILD-and-related-variables.patch deleted +0 -134
134 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0027-nios2-Define-MUSL_DYNAMIC_LINKER.patch +17 -11
@@ -1,20 +1,26 @@ -From 9bbce1b5a10caf636eee137e5a229e5434a6c8f5 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 2 Feb 2016 10:26:10 -0800 -Subject: [PATCH] nios2: Define MUSL_DYNAMIC_LINKER +From: Richard Purdie <[email protected]> +Subject: [PATCH 4/5] gcc/nios2: Define the musl linker -Upstream-Status: Pending +Add a definition of the musl linker used on the nios2 platform. -Signed-off-by: Marek Vasut <[email protected]> -Signed-off-by: Khem Raj <[email protected]> +2021-10-26 Richard Purdie <[email protected]> + +gcc/ChangeLog: + + * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker + +Signed-off-by: Richard Purdie <[email protected]> + +Submitted [https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582723.html] +Upstream-Status: Backport [https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e5ddbbf992b909d8e38851bd3179d29389e6ac97] --- gcc/config/nios2/linux.h | 1 + 1 file changed, 1 insertion(+) -diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h -index 08edf1521f6..15696d86241 100644 ---- a/gcc/config/nios2/linux.h -+++ b/gcc/config/nios2/linux.h +Index: gcc-11.2.0/gcc/config/nios2/linux.h +=================================================================== +--- gcc-11.2.0.orig/gcc/config/nios2/linux.h ++++ gcc-11.2.0/gcc/config/nios2/linux.h @@ -30,6 +30,7 @@ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
Signature · 1 line
2.32.0