diff --git a/cross/gcc-aarch64/0001-posix_memalign.patch b/cross/gcc-aarch64/0001-posix_memalign.patch index 9fdc9fc49..04240c29c 100644 --- a/cross/gcc-aarch64/0001-posix_memalign.patch +++ b/cross/gcc-aarch64/0001-posix_memalign.patch @@ -1,7 +1,7 @@ From 47b4bd4deb2c356bb07d2a96f22127aefafec3a4 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/34] posix_memalign +Subject: [PATCH 01/35] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch b/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch index 8f0e2f178..b14c921c2 100644 --- a/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ From 4fa620d8c3e6730211bfb071eb4c817320491bd0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/34] gcc: poison-system-directories +Subject: [PATCH 02/35] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch index f69c0b7b6..bfb0a6eba 100644 --- a/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ From ff4dd4ce33133e675b7bedc86b73357c04631cb9 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/34] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/35] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index 130674a1e..13785a24e 100644 --- a/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ From 1b315235433701e4a974da259b8d651169ddc7ac Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/34] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/35] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index d533c67f9..d229bcfa0 100644 --- a/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ From 67c0f5789630b27149f60ff831999ef7c1dba5d5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/34] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/35] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 38aa4cf7c..55dff3692 100644 --- a/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ From bb25e8489384504cd59e4a2538720863da1fb29c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/34] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/35] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch index c1fd924f1..eb7aae838 100644 --- a/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ From 4a728ad48a7b437cc6f2697e26603bf648149f86 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/34] Enable -Wtrampolines by default. +Subject: [PATCH 07/35] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 5b6e4c155..69c1bf725 100644 --- a/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ From 32f24560d0602f7735d5e9efd92fe3151bd72cea Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/34] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/35] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index 726a645ad..f4dd52f19 100644 --- a/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ From c7ec8da7280d7f97f5543eb9ddeca7600aafc43c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/34] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/35] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 5689b62ab..f56d41a57 100644 --- a/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ From aaa029bcee68298695b7c4278c90b6bc320d098c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/34] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/35] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch index 4967119c5..b12d4f94b 100644 --- a/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ From 65e01e749205c9af218b01233cebd0077538d0ee Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/34] libiberty: copy PIC objects during build process +Subject: [PATCH 11/35] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-aarch64/0012-libgcc_s.patch b/cross/gcc-aarch64/0012-libgcc_s.patch index 75888cc6c..d8bbc602f 100644 --- a/cross/gcc-aarch64/0012-libgcc_s.patch +++ b/cross/gcc-aarch64/0012-libgcc_s.patch @@ -1,7 +1,7 @@ From 453a815bf2844971a91eaef800af188d9e86b784 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/34] libgcc_s +Subject: [PATCH 12/35] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-aarch64/0013-nopie.patch b/cross/gcc-aarch64/0013-nopie.patch index 2eeac39a1..28a765ef2 100644 --- a/cross/gcc-aarch64/0013-nopie.patch +++ b/cross/gcc-aarch64/0013-nopie.patch @@ -1,7 +1,7 @@ From 7d7d12137c666761a8dd61179c9651b85dae9b41 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/34] nopie +Subject: [PATCH 13/35] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch b/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch index de224ceb0..ff6e42921 100644 --- a/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ From dd5bb97c31a9f57034c70a7a18ba6e2e133084c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/34] ada: fix shared linking +Subject: [PATCH 14/35] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 8065fca24..937cad8a7 100644 --- a/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ From 6bb5b7d9161d05f31b001d8211a9c63caf63fd2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/34] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/35] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch b/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch index 2a9c512a3..b554e0251 100644 --- a/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ From f0d9e00cac06689f64b214de7aee80d7116ef084 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/34] add fortify-headers paths +Subject: [PATCH 16/35] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index a7dd84044..96972482c 100644 --- a/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ From 857db04f4f1a06e866551b4172fe8f27363f4a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/34] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/35] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 76d9417b4..a9612913e 100644 --- a/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ From 5a8347e23ab13912b6edec2c6c6e3a101b017c79 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/34] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/35] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch b/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch index 81bfc7491..5a8148feb 100644 --- a/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 41d00a2eb0754acf71958808bd17dbebeb517b84 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/34] aarch64: disable multilib support +Subject: [PATCH 19/35] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch b/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch index b13573a27..ef2f449a4 100644 --- a/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 85b42bfbba71616831d14360b16998acb28790fd Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/34] s390x: disable multilib support +Subject: [PATCH 20/35] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch index 58261e231..dbdc78828 100644 --- a/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 7b53df284242638e940c0155b6c21e88cea1f55b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/34] ppc64[le]: disable multilib support +Subject: [PATCH 21/35] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch b/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch index f435876c8..2b2f3e7f3 100644 --- a/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 96e7e1e9a899d9bb5fcbdf788bd529d0390c626f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/34] x86_64: disable multilib support +Subject: [PATCH 22/35] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch b/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch index f0055e1a1..b919defc3 100644 --- a/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ From b26224acf342eacb33491f6ea0da1faf73d35715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/34] riscv: disable multilib support +Subject: [PATCH 23/35] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch b/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch index 2dd993a4b..6b0514e98 100644 --- a/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ From a72e0613f79f6b6867819317accb7a714031a08c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/34] always build libgcc_eh.a +Subject: [PATCH 24/35] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch index 8290c8251..b7c1c5f2f 100644 --- a/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ From 3ee8cbc1cad261b30d4a7a66d31496d5f243ce2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/34] ada: libgnarl compatibility for musl +Subject: [PATCH 25/35] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch b/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch index 823065b48..ada929350 100644 --- a/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ From 3df4788c79c7429b196c7b284af2b4cf9a4b4f8d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/34] ada: musl support fixes +Subject: [PATCH 26/35] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index 17699b3ac..fcf74ee38 100644 --- a/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/34] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index a6de49018..f92fc7bf4 100644 --- a/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ From 5bbbd320e54ab5341cfba83e8af98685131caba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/34] configure: fix detection of atomic builtins in +Subject: [PATCH 28/35] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index b1e9db0e4..4418cd5b5 100644 --- a/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ From 430c701a3cefbe09a9c7c8a2f5bbe957f9b2ecb2 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/34] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/35] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index 6d27176cf..6c5bf838d 100644 --- a/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ From 05f0043755f341a2ff4f845379327076b3e0203d Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/34] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/35] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch index 3c8833f17..eb7aa6d21 100644 --- a/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ From 0b89a74fbf77ae6917f043c79cd03db0d6ef0212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/34] druntime: link against libucontext on all platforms +Subject: [PATCH 31/35] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index 132eb8ef0..e1679a8e5 100644 --- a/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ From eeec799f43fbd0bfffc13594585b39d708972511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/34] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/35] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch index 844484cb5..138bd64b7 100644 --- a/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch +++ b/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -1,7 +1,7 @@ From b71d21b87e6946c763edad5e420bf22d8a453077 Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 29 May 2023 15:33:11 +0000 -Subject: [PATCH 33/34] libphobos: do not use LFS64 symbols +Subject: [PATCH 33/35] libphobos: do not use LFS64 symbols musl does not have these since 1.2.4, we can't use the compat interfaces. --- diff --git a/cross/gcc-aarch64/0034-libgo-fix-lfs64-use.patch b/cross/gcc-aarch64/0034-libgo-fix-lfs64-use.patch index 4789cd1e8..cf47858d6 100644 --- a/cross/gcc-aarch64/0034-libgo-fix-lfs64-use.patch +++ b/cross/gcc-aarch64/0034-libgo-fix-lfs64-use.patch @@ -1,7 +1,7 @@ From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 10 Jul 2023 23:23:29 +0000 -Subject: [PATCH 34/34] libgo: fix lfs64 use +Subject: [PATCH 34/35] libgo: fix lfs64 use --- .../go/internal/syscall/unix/at_largefile.go | 2 +- diff --git a/cross/gcc-aarch64/0035-Fix-ICE-observed-in-PR110280.patch b/cross/gcc-aarch64/0035-Fix-ICE-observed-in-PR110280.patch new file mode 100644 index 000000000..b9a7eaf0f --- /dev/null +++ b/cross/gcc-aarch64/0035-Fix-ICE-observed-in-PR110280.patch @@ -0,0 +1,61 @@ +From ef740fff300fd9eb8285fb5611f6205705ee54ec Mon Sep 17 00:00:00 2001 +From: Prathamesh Kulkarni +Date: Fri, 23 Jun 2023 15:27:17 +0530 +Subject: [PATCH 35/35] Fix ICE observed in PR110280. + +gcc/ChangeLog: + PR tree-optimization/110280 + * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector + using build_vector_from_val with the element of input operand, and + mask's type if operand and mask's types don't match. + +gcc/testsuite/ChangeLog: + PR tree-optimization/110280 + * gcc.target/aarch64/sve/pr110280.c: New test. +--- + gcc/match.pd | 9 ++++++++- + gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++ + 2 files changed, 20 insertions(+), 1 deletion(-) + create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c + +diff --git a/gcc/match.pd b/gcc/match.pd +index 91182448250..c3bb4fbc0a7 100644 +--- a/gcc/match.pd ++++ b/gcc/match.pd +@@ -8292,7 +8292,14 @@ and, + + (simplify + (vec_perm vec_same_elem_p@0 @0 @1) +- @0) ++ (if (types_match (type, TREE_TYPE (@0))) ++ @0 ++ (with ++ { ++ tree elem = uniform_vector_p (@0); ++ } ++ (if (elem) ++ { build_vector_from_val (type, elem); })))) + + /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */ + (simplify +diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +new file mode 100644 +index 00000000000..d3279f38362 +--- /dev/null ++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +@@ -0,0 +1,12 @@ ++/* { dg-do compile } */ ++/* { dg-options "-O3 -fdump-tree-optimized" } */ ++ ++#include "arm_sve.h" ++ ++svuint32_t l() ++{ ++ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0}; ++ return svld1rq_u32(svptrue_b8(), lanes); ++} ++ ++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */ +-- +2.41.0 + diff --git a/cross/gcc-aarch64/APKBUILD b/cross/gcc-aarch64/APKBUILD index bf57ed47f..4cc6bc86b 100644 --- a/cross/gcc-aarch64/APKBUILD +++ b/cross/gcc-aarch64/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-aarch64 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for aarch64" url="https://gcc.gnu.org" arch="x86_64" @@ -268,6 +268,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch 0033-libphobos-do-not-use-LFS64-symbols.patch 0034-libgo-fix-lfs64-use.patch + 0035-Fix-ICE-observed-in-PR110280.patch " # we build out-of-tree @@ -782,38 +783,39 @@ gdb() { sha512sums=" 284719308cad4546ebd85934fb9f12112e8f1a4c3e5beea0760da1f73509907c194e7c133e6e755b6148bd1c51a72c071ac0d16b05641d901af7105461686655 gcc-13-20230722.tar.xz -438eda29a1851c72e65422bb4cd129ecc016f06f9bd038288e39762c01b932f786ed4aad587c7b16baf948c342c10dc9beff125166b97e0b8e0d05789aec95ce 0001-posix_memalign.patch -4a7cd030e107b6e35fb883c80f21a547da14f540f989555ac2c9ba08958ace5b44dca194a96b460415c71f663e885954d73b04ade55f2f9d3cb116f50df8d8ca 0002-gcc-poison-system-directories.patch -99b194f53677c3a75c3c376160673703f2d759d795ebd9f6e66d5ee095a648eba35d8aef1990a6a1e805c1cc1720636d7c23ef6102b674d92996b1e5646a0b2c 0003-specs-turn-on-Wl-z-now-by-default.patch -39013ad0b255e9cfd168010eefc32ec4d015fce2c2b4e864341a6aa8bdb74e52a08f0ae83f29e27e9524d4da27f28369a6aa4d76f6aed6490dc2961b18f90e94 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -0ef08231bef5c77a38e8deaae4e00675de4312071425cf1db46ee54c3e00d2a5d1658a68302dd495c796d397e61e79efcf4e91fbd8fb2cd2e2fa539c2e884492 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -8202e22832141fb12601546cec42472fdb194892f839e9fed86b4ab597204b6e6575c0585c283301eeb598ac1f06d16ce500d9c0ea333444bd50ae2a210d2d76 0006-Enable-Wformat-and-Wformat-security-by-default.patch -1b239b94b570a0eff2249a9ec7ad150270c3210128f8f8a67e1554a044a039b2acc69768ebc57a15cec661f039c41fb7b620e7ec65320efbce40ceec1c9c6b90 0007-Enable-Wtrampolines-by-default.patch -eb3ce4df99bf4f22ca4bac2d4e24be4c235098fb67ae118cb8efe360f0441a39a9931076fa615fbc3b7d2b2a541d4ffb2cfc56097224fbd8b5f09bc01a1d7878 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -58a5ea76b4f7d662d3165dfeaad258087b0ec58b7ff87a62971c60817388ec6191d6dc841d63696d00fb68fe16b690790f3c0639e0edbd204033b4f8bbb4dafe 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -85d60bc6ef5f41854a5bc36847917dcee24bf6663fcd70b78a164a07fc08551f74fe37329b57cf187b95e23a6d04bce2ba620f21ac80c8df7d9cfcc8052089df 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -8ef0f45bc0639464537f39319f4954d9a9ab182e14a10c6e39455bebddd24dcdbe6ec3fc0316324a4f9d7dc1f95ec8babd7112c2ff05af54534e0fbe74ff6ebf 0011-libiberty-copy-PIC-objects-during-build-process.patch -d8467365c19339e52bcf27476b338fb412b6a7dd6eefd4fd92822e67c756a1f04a106f4e0c1c1909b4bee8f5f3b506a98614c1bf3478d7714415cca9eb7257e1 0012-libgcc_s.patch -cab0cb6c462f2f4abefde020e17199366c6c24ad2582fe7d793c552aa2bcbe3148c5f6cd6245bc9ff86017d949ef4e6f063c8a01ce7d247abfe685077c57e71c 0013-nopie.patch -b1277a4edc91208fecf5ad7015e8cf237d567b310063f26d14ff39c4aade683e6d1d54d817b7f4fef79db7dc456be9f09a5a8c0ceeff784f839521d0cf243807 0014-ada-fix-shared-linking.patch -9fa42ba8374b8e47cb3d96315d783c990cf35075354869f5657383908c4d5f143ee94d1f7f86f52140a974f5fc872b22bcaec1f732ebc249357a86ad9e781d4e 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -05e1e06a6e33958ec5c22b26919fe142153c9605173ad90c770a32d7d48dfb5df421553f3030b6d979f34acbd3614d0e32c86c3cb0b819f3fbaa054f2962ff20 0016-add-fortify-headers-paths.patch -784d488cf55fafa259d3aa874f4230453b4d3aeb94158d0c96caf26524b8b7f8cea12367a72fa4616389dfcb877c4a1c4fe9d1cb57a67c0329bbad61e91ee423 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -18c1092273005f4fcaec36830a2cbfbf5e2a2e4e82cf5f7f4f7f3141dbbe2731db2f47a9869f271b4ee337835962c7dfbf009165f2988a14ff40d6c6935986ce 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -4bbce70032f125002aa857b0561c80e15588847282c2ab2851c3c507a48d22613ef3affb288c33da461688890c7ce265c6175fb1580194669621653788172d1b 0019-aarch64-disable-multilib-support.patch -d4bf0a7add6d531871324c36004f7d92eea9ad7042d567e43377e5bdde7dce8d87c649c3c4bdf0144b82d2607b46fab4eb821cf9a82ee4eddb003601b331e395 0020-s390x-disable-multilib-support.patch -e0002f9aea22c923530591f97cfb29953cd924a78b3c7ae5d15ccaae46491c1f40b03a5dc5fc17a286299b82ef48248a9ecbf6eea9bbd2058189a697e9e2ffe8 0021-ppc64-le-disable-multilib-support.patch -28b6e2f1574611964f8e2effa57dcb6efff5d562ec5f923abfa9ddeaf4a09b0c6941d1406b02d113f950113b7239dcc8dd6b14d06ade3b2f4dbdb7f6d5560bed 0022-x86_64-disable-multilib-support.patch -6955ea39199f258340b69c8aa7021c65fc15179323f50be08952a302b77cec1a720b99ada60bf2a07594ba536a50b682d06290497fc9d4553c8e11e2f536a606 0023-riscv-disable-multilib-support.patch -46bfcfc122a29060d6ff1fb52b509251ba44357df67f81be1c274fdfe9b80099b1a5ad64f7d40d8412bb437e6147cb404448b8e067989018bdaf2df5cdfabaef 0024-always-build-libgcc_eh.a.patch -07b4028c8d8c7b8bc71c0fb4e31669fb2066aefdded556d0a65773fa93db097a55e9bfa9ac9ee10fbc82e4ba21aa84738e91c331b768cf7d067407934fc30064 0025-ada-libgnarl-compatibility-for-musl.patch -7201a76ac033bd4f7532600d7a975f2aa9f93692cec42e28323e6e8e27f7357e0cb1497c12503829a41ed025e9c7953bf4738ad0d980687a774088fabaf08cdf 0026-ada-musl-support-fixes.patch -f3974d1a693c0e382fa78ae94ebf768c6a1ca0ee631b478cf52a366537edae373cd0ab31369ef1ae0627d2834bcacfb94c9a4d01505c91eaac9d228a5933d0ae 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -8f77c3a908ec92966fb1697fd40cc936d4dca2624f6f14b199ba154f8c46be773548a571b41a1cf537134b011e3426deb443e4a13e49fb763c91c821ca1bae63 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -8cd10e3d10e3da0505cb4c09c4448335e5bbd18fe6e2c47cfa1257df3d83234983d71b1fdb0b4bfc76b24d477fd6e2d771b8eefacbb61e0ca1df105b980dbd4a 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -e026f1e20b78328b55b92a5fdf8f9d1d761176d2eea90556d7be8e2bae72d0dc52fd482d1eac8ab623e98653ca56d39b18fd2139ff99d420994b10c36f266ca6 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -80b41cf68a7e56bef50c05073cc79b9eafbd37535f6360deac16dfe5498ac041aaf91c3cc1bc6e323d574cd1da65aab22df32a03e39f606bff41a103063aafef 0031-druntime-link-against-libucontext-on-all-platforms.patch -b4917017c45d170c6878c7744c1ecababef4346903ee1f684d5a59d65255a5576d16d40137f7dbfe46144907c6389035966813e9024c9a4f499e963ed533947a 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch -1cc7a5ef067bf543f6c1fa14dedc6378750a43be1649b18605699dffdc1ebce8b88405d3f12dd57e3d821c7d457d861ee0a54138c037917d6365b0bf69526e85 0033-libphobos-do-not-use-LFS64-symbols.patch -77a1426e316b96b51edef9a35a64565d5f84b94d46a2fd7293ea406ede473b449613969f9e29cae44f8fbfbc767a27cef01b36392cf8ffb3f618c0df4e217c71 0034-libgo-fix-lfs64-use.patch +1ecffba1b07d60e1b4422302b032bbea918b674c8e12b30aa6965b544d700ce86b61e9f7b8d402c6caf59257f491a394dd0912f0948565d6eae9335ee54f3b35 0001-posix_memalign.patch +163f282455b6a4df33f011bcd8b0440566ba0ffaeeab30d8ac52d39948980a56881ca0eff60687129d59556389a58b9d64e7768750bd70b1fe0fedbc9fc30dc2 0002-gcc-poison-system-directories.patch +3f24bb6a50d3c45b71ea05590e32fe3e69b91377ab185352891d5035c76ed193117c6d0b314a4c364bcf136b9a9dd5c926d6c7c30ab436976c121ebfea8d3ddd 0003-specs-turn-on-Wl-z-now-by-default.patch +17a2993027d3ddf8595952ebcae425695ddc7b1cf73b384d2e55fddecb9cbf3f6482860a502ff69b14075e12badf27300fd3039f3a9005e851fd8d121d258c2b 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +444550e55491ff89fe8cbbb4b73d017c9c147cdce1ad5c0561fe7d6ab3834515a814c7676c408cfeec18e1aaace27b3c26a2ffe4a75042285df5124976c38672 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +5a5f57e4e45745bb4d9d63d7d410fe9dd56ce12dbd70c376dd45015909307faf02391e75368e4e7404591614a874cee41b20652cf27be234765d6db97ceb4e7e 0006-Enable-Wformat-and-Wformat-security-by-default.patch +3a2b22388398a93dae7787e794cd580b9c577326f286241e086120c1fcfdd9228c2e00407088ebb163fb1acc21722c199071343551c989a958dc3c845b15132d 0007-Enable-Wtrampolines-by-default.patch +7535de1c552544e3a51cbb00b5e08ac59edbf3bdcfce2a63b9f319fada3f3676f47e3a00c75d91bcefd14500555ea0844f18c130ff46b20f416ea76071e5af39 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +93d03afd83dee5f7129c36a7b81fa8fd323476507e2f53a4fbe40a026037e7dfafa23591145d7af5848d9a322d212497947a0f58ef828734552e6a6dabd00cfa 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +da9eaf2f0ddbec5ee14dc26053936587e6c76fbf16846db804a18cf4d318579426ebcc566aed02daf8e34f60c08b61f5d3959305886dca9bbcdc84db057258d9 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +35b9aafe7eee8138cb7aad7164a8f77c15ccdce26843cee78b5871ef91d76cad22ed0871b20f51c4b89b71afd9cfe4ba4227086e158c466558513708fe7d2a1a 0011-libiberty-copy-PIC-objects-during-build-process.patch +9d43f844fad0ac6e1c35a2b6f461f9278ae09e468f2c9ae8adc43accbe6934994aa10d3a433644d1393a4a76e3caed69e3191db7f3c0c24b4e7a0a0a0cbac3f1 0012-libgcc_s.patch +b2c4921c5eef33ee43a92ab5ec7f09d5d3adb49a2416595001e6376ffdf652ef9d0dc21778c3a86e45334290dbe467a4e891ed34a6522e0c72f746def22e8663 0013-nopie.patch +0b50ad15115192699efa9fda3d4fb1c2fa95da06d7880ba34615b40c19a8256e1fe364da39f5c70dc22fbccf21db2de5900932afef68948722eeb25e435262f8 0014-ada-fix-shared-linking.patch +00097c7106625ccf02149a757366f434c48f2abe824bb8b4bf067d29308889cb6039a5e5b2d3bd2683617693b47707d549252c56eea6bc3cdc2450a8d14f46a7 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +7f0bc42b93a389b614054e700b851abfbc53db391aa10cbdf6990d41396b293af78980bb39f1cf0967184d3fbf3d46ac7c7f096717b8f193ea34cbf7f37d7e91 0016-add-fortify-headers-paths.patch +0841acbce81250f8cb140a75ff62958dfcab3bed792822baf1fe4193dd62633648343f4b66df886c12338eed88a98e591b968131416460f9f0274046019bb8ef 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +589d538bdf692559e475e53c79869734dede0eb15228cab9ca901c9db81b0e78a0e532b20dfb05ca584ea19ff4bedd83e139ddca912a26b446c5eb6905180536 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +2213e07bab6f5d8d3d39c732f5385f46cc8f0c84e35054139fdaf13051252d7bf11f647f54aa8456b532166b008fff0656d8f41278e34ba868dd6fe427427a3a 0019-aarch64-disable-multilib-support.patch +a9567947471c3ba8a547a79c55e183974554bf823d9a97a165c966d7b3caad8789980e096e3b78452ece5de062bd9bb006af464bbf0c5a35b689eac3ee21e5c5 0020-s390x-disable-multilib-support.patch +f382eb5f7c2c60c5a23fac587c9629a3059d7be0898e97a1feaf9b9cbe1ef4693cc1177eb29333e8b7944fa17487478e73958be45d5782ccb9ef501961fb9a96 0021-ppc64-le-disable-multilib-support.patch +44ab86feb8e41e7c2b2e27accdf46194c9b80ee6a39543303dc04824f669d9fad182aabd40c9c7f6c265cf9bb71be830c257be115dc9d701d54eca3aa9ef174e 0022-x86_64-disable-multilib-support.patch +e0763083c31485e8ac0b3724376a28af01bb6f50e1a054780b61886e4e3de2a35d127e6e353eb8d8729964ada9b5751bf05bdd51df539667008216db38f228a3 0023-riscv-disable-multilib-support.patch +ab88a2f63e3545bbc36537aa9a86f2c6c35e41bbf702d6e13743a405cdac4f901eed5737189b780da96647fea9f5d863fdc76373f25a00064106dcb5514d6d87 0024-always-build-libgcc_eh.a.patch +8fdbe0c8bf4ca60f458a33e59027de03d15ac91933fe46d8ca62119346d20b9bc2447c0bf22bceb63d0cf8613ab61512d9197f4e6c2224af473b63ef9f254295 0025-ada-libgnarl-compatibility-for-musl.patch +30369bea84020c32d514196ba3adb3d09d2d0359af5550bd3f9719aa357e44b2f695623c1d2a99416e120dc86896c196c5dd4f638183dced4799604137385367 0026-ada-musl-support-fixes.patch +3f9a406d7d2ce34951215ffbcadb49a45e55ad5c24ab9097c0e5e92383e43b876872ccd2a7e7def2833ab204975ee5733f8bcf90934db9fa9c4f6f56c62081f6 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +720a4001f9a1fa4122e456077ecff8d3eb8af7c83d0a81f9da6a6cca05b23664206a82a349e34482c48bfe40e99aa5f21567613d0913f6a24f282bc84a994496 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +2044c23b23726965c0a6fd39f616cc464badd650947cb40495eeabd906a3af629878c1d28b403b8eb46b30a1a0ba39083023290d62f0c99ccf070063226e3f8f 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +58e8415612e1042329ad114471852c19f6bf15bf3bfd7cd81ceeafa75778bcc28410a01071a7c8cbf12b8f549acd85723215772813deedb8f266e28b9e01a353 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +d47b559075f40d526235f47b91da1d0cf6bfe6c5b7311bbfe08af9dd6e8f27e6c7cd82e3b2d529aab0536246fc56e2d42c089b22cacb0e7f09ca4a9d07556994 0031-druntime-link-against-libucontext-on-all-platforms.patch +b325035cb7122d79c6b42ca6d3fc9e02319ed2f7cddb0639dff25d2798d2ce63812cd623462cdf95e21c9ffbf2412193f8b9fc89a4c36fa5a6a041661ac7399d 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +c474f34e6f9a4239d486a65141a133dbe8ce91427d502a57a9fd6eb403478a2b5715ba74f24c1cc0761e16eec77ba2c1ca921fb7d7bc1e040fc3703fc9559e75 0033-libphobos-do-not-use-LFS64-symbols.patch +c4482ffc36e7894b2140800159f4cbc9a3e9011e43a69b69f4fa92d5a11e2ee645c7e21df4423dd1e0636e8890849a5719647bfbdf84f951d638f8f488cb718c 0034-libgo-fix-lfs64-use.patch +048d767f4477c92ee6835850d13063ede21c0be751d0945c94445d04054e134cdc617eeb0b1ac8c892a604d8644580fcfebeccaf537d6b7380558ac6378e445a 0035-Fix-ICE-observed-in-PR110280.patch " diff --git a/cross/gcc-armhf/0001-posix_memalign.patch b/cross/gcc-armhf/0001-posix_memalign.patch index 9fdc9fc49..04240c29c 100644 --- a/cross/gcc-armhf/0001-posix_memalign.patch +++ b/cross/gcc-armhf/0001-posix_memalign.patch @@ -1,7 +1,7 @@ From 47b4bd4deb2c356bb07d2a96f22127aefafec3a4 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/34] posix_memalign +Subject: [PATCH 01/35] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-armhf/0002-gcc-poison-system-directories.patch b/cross/gcc-armhf/0002-gcc-poison-system-directories.patch index 8f0e2f178..b14c921c2 100644 --- a/cross/gcc-armhf/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-armhf/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ From 4fa620d8c3e6730211bfb071eb4c817320491bd0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/34] gcc: poison-system-directories +Subject: [PATCH 02/35] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch index f69c0b7b6..bfb0a6eba 100644 --- a/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ From ff4dd4ce33133e675b7bedc86b73357c04631cb9 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/34] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/35] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index 130674a1e..13785a24e 100644 --- a/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ From 1b315235433701e4a974da259b8d651169ddc7ac Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/34] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/35] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index d533c67f9..d229bcfa0 100644 --- a/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ From 67c0f5789630b27149f60ff831999ef7c1dba5d5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/34] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/35] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 38aa4cf7c..55dff3692 100644 --- a/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ From bb25e8489384504cd59e4a2538720863da1fb29c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/34] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/35] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch index c1fd924f1..eb7aae838 100644 --- a/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ From 4a728ad48a7b437cc6f2697e26603bf648149f86 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/34] Enable -Wtrampolines by default. +Subject: [PATCH 07/35] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 5b6e4c155..69c1bf725 100644 --- a/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ From 32f24560d0602f7735d5e9efd92fe3151bd72cea Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/34] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/35] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index 726a645ad..f4dd52f19 100644 --- a/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ From c7ec8da7280d7f97f5543eb9ddeca7600aafc43c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/34] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/35] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 5689b62ab..f56d41a57 100644 --- a/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ From aaa029bcee68298695b7c4278c90b6bc320d098c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/34] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/35] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch index 4967119c5..b12d4f94b 100644 --- a/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ From 65e01e749205c9af218b01233cebd0077538d0ee Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/34] libiberty: copy PIC objects during build process +Subject: [PATCH 11/35] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-armhf/0012-libgcc_s.patch b/cross/gcc-armhf/0012-libgcc_s.patch index 75888cc6c..d8bbc602f 100644 --- a/cross/gcc-armhf/0012-libgcc_s.patch +++ b/cross/gcc-armhf/0012-libgcc_s.patch @@ -1,7 +1,7 @@ From 453a815bf2844971a91eaef800af188d9e86b784 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/34] libgcc_s +Subject: [PATCH 12/35] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-armhf/0013-nopie.patch b/cross/gcc-armhf/0013-nopie.patch index 2eeac39a1..28a765ef2 100644 --- a/cross/gcc-armhf/0013-nopie.patch +++ b/cross/gcc-armhf/0013-nopie.patch @@ -1,7 +1,7 @@ From 7d7d12137c666761a8dd61179c9651b85dae9b41 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/34] nopie +Subject: [PATCH 13/35] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-armhf/0014-ada-fix-shared-linking.patch b/cross/gcc-armhf/0014-ada-fix-shared-linking.patch index de224ceb0..ff6e42921 100644 --- a/cross/gcc-armhf/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-armhf/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ From dd5bb97c31a9f57034c70a7a18ba6e2e133084c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/34] ada: fix shared linking +Subject: [PATCH 14/35] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 8065fca24..937cad8a7 100644 --- a/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ From 6bb5b7d9161d05f31b001d8211a9c63caf63fd2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/34] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/35] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-armhf/0016-add-fortify-headers-paths.patch b/cross/gcc-armhf/0016-add-fortify-headers-paths.patch index 2a9c512a3..b554e0251 100644 --- a/cross/gcc-armhf/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-armhf/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ From f0d9e00cac06689f64b214de7aee80d7116ef084 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/34] add fortify-headers paths +Subject: [PATCH 16/35] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index a7dd84044..96972482c 100644 --- a/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ From 857db04f4f1a06e866551b4172fe8f27363f4a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/34] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/35] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 76d9417b4..a9612913e 100644 --- a/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ From 5a8347e23ab13912b6edec2c6c6e3a101b017c79 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/34] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/35] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch b/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch index 81bfc7491..5a8148feb 100644 --- a/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 41d00a2eb0754acf71958808bd17dbebeb517b84 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/34] aarch64: disable multilib support +Subject: [PATCH 19/35] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch b/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch index b13573a27..ef2f449a4 100644 --- a/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 85b42bfbba71616831d14360b16998acb28790fd Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/34] s390x: disable multilib support +Subject: [PATCH 20/35] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch index 58261e231..dbdc78828 100644 --- a/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 7b53df284242638e940c0155b6c21e88cea1f55b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/34] ppc64[le]: disable multilib support +Subject: [PATCH 21/35] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch b/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch index f435876c8..2b2f3e7f3 100644 --- a/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 96e7e1e9a899d9bb5fcbdf788bd529d0390c626f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/34] x86_64: disable multilib support +Subject: [PATCH 22/35] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch b/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch index f0055e1a1..b919defc3 100644 --- a/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ From b26224acf342eacb33491f6ea0da1faf73d35715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/34] riscv: disable multilib support +Subject: [PATCH 23/35] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch b/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch index 2dd993a4b..6b0514e98 100644 --- a/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ From a72e0613f79f6b6867819317accb7a714031a08c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/34] always build libgcc_eh.a +Subject: [PATCH 24/35] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch index 8290c8251..b7c1c5f2f 100644 --- a/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ From 3ee8cbc1cad261b30d4a7a66d31496d5f243ce2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/34] ada: libgnarl compatibility for musl +Subject: [PATCH 25/35] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-armhf/0026-ada-musl-support-fixes.patch b/cross/gcc-armhf/0026-ada-musl-support-fixes.patch index 823065b48..ada929350 100644 --- a/cross/gcc-armhf/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-armhf/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ From 3df4788c79c7429b196c7b284af2b4cf9a4b4f8d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/34] ada: musl support fixes +Subject: [PATCH 26/35] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index 17699b3ac..fcf74ee38 100644 --- a/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/34] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index a6de49018..f92fc7bf4 100644 --- a/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ From 5bbbd320e54ab5341cfba83e8af98685131caba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/34] configure: fix detection of atomic builtins in +Subject: [PATCH 28/35] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index b1e9db0e4..4418cd5b5 100644 --- a/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ From 430c701a3cefbe09a9c7c8a2f5bbe957f9b2ecb2 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/34] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/35] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index 6d27176cf..6c5bf838d 100644 --- a/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ From 05f0043755f341a2ff4f845379327076b3e0203d Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/34] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/35] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch index 3c8833f17..eb7aa6d21 100644 --- a/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ From 0b89a74fbf77ae6917f043c79cd03db0d6ef0212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/34] druntime: link against libucontext on all platforms +Subject: [PATCH 31/35] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index 132eb8ef0..e1679a8e5 100644 --- a/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ From eeec799f43fbd0bfffc13594585b39d708972511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/34] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/35] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch index 844484cb5..138bd64b7 100644 --- a/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch +++ b/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -1,7 +1,7 @@ From b71d21b87e6946c763edad5e420bf22d8a453077 Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 29 May 2023 15:33:11 +0000 -Subject: [PATCH 33/34] libphobos: do not use LFS64 symbols +Subject: [PATCH 33/35] libphobos: do not use LFS64 symbols musl does not have these since 1.2.4, we can't use the compat interfaces. --- diff --git a/cross/gcc-armhf/0034-libgo-fix-lfs64-use.patch b/cross/gcc-armhf/0034-libgo-fix-lfs64-use.patch index 4789cd1e8..cf47858d6 100644 --- a/cross/gcc-armhf/0034-libgo-fix-lfs64-use.patch +++ b/cross/gcc-armhf/0034-libgo-fix-lfs64-use.patch @@ -1,7 +1,7 @@ From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 10 Jul 2023 23:23:29 +0000 -Subject: [PATCH 34/34] libgo: fix lfs64 use +Subject: [PATCH 34/35] libgo: fix lfs64 use --- .../go/internal/syscall/unix/at_largefile.go | 2 +- diff --git a/cross/gcc-armhf/0035-Fix-ICE-observed-in-PR110280.patch b/cross/gcc-armhf/0035-Fix-ICE-observed-in-PR110280.patch new file mode 100644 index 000000000..b9a7eaf0f --- /dev/null +++ b/cross/gcc-armhf/0035-Fix-ICE-observed-in-PR110280.patch @@ -0,0 +1,61 @@ +From ef740fff300fd9eb8285fb5611f6205705ee54ec Mon Sep 17 00:00:00 2001 +From: Prathamesh Kulkarni +Date: Fri, 23 Jun 2023 15:27:17 +0530 +Subject: [PATCH 35/35] Fix ICE observed in PR110280. + +gcc/ChangeLog: + PR tree-optimization/110280 + * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector + using build_vector_from_val with the element of input operand, and + mask's type if operand and mask's types don't match. + +gcc/testsuite/ChangeLog: + PR tree-optimization/110280 + * gcc.target/aarch64/sve/pr110280.c: New test. +--- + gcc/match.pd | 9 ++++++++- + gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++ + 2 files changed, 20 insertions(+), 1 deletion(-) + create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c + +diff --git a/gcc/match.pd b/gcc/match.pd +index 91182448250..c3bb4fbc0a7 100644 +--- a/gcc/match.pd ++++ b/gcc/match.pd +@@ -8292,7 +8292,14 @@ and, + + (simplify + (vec_perm vec_same_elem_p@0 @0 @1) +- @0) ++ (if (types_match (type, TREE_TYPE (@0))) ++ @0 ++ (with ++ { ++ tree elem = uniform_vector_p (@0); ++ } ++ (if (elem) ++ { build_vector_from_val (type, elem); })))) + + /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */ + (simplify +diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +new file mode 100644 +index 00000000000..d3279f38362 +--- /dev/null ++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +@@ -0,0 +1,12 @@ ++/* { dg-do compile } */ ++/* { dg-options "-O3 -fdump-tree-optimized" } */ ++ ++#include "arm_sve.h" ++ ++svuint32_t l() ++{ ++ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0}; ++ return svld1rq_u32(svptrue_b8(), lanes); ++} ++ ++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */ +-- +2.41.0 + diff --git a/cross/gcc-armhf/APKBUILD b/cross/gcc-armhf/APKBUILD index e99ea6689..7bc6fbb19 100644 --- a/cross/gcc-armhf/APKBUILD +++ b/cross/gcc-armhf/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armhf -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for armhf" url="https://gcc.gnu.org" arch="x86_64" @@ -268,6 +268,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch 0033-libphobos-do-not-use-LFS64-symbols.patch 0034-libgo-fix-lfs64-use.patch + 0035-Fix-ICE-observed-in-PR110280.patch " # we build out-of-tree @@ -782,38 +783,39 @@ gdb() { sha512sums=" 284719308cad4546ebd85934fb9f12112e8f1a4c3e5beea0760da1f73509907c194e7c133e6e755b6148bd1c51a72c071ac0d16b05641d901af7105461686655 gcc-13-20230722.tar.xz -438eda29a1851c72e65422bb4cd129ecc016f06f9bd038288e39762c01b932f786ed4aad587c7b16baf948c342c10dc9beff125166b97e0b8e0d05789aec95ce 0001-posix_memalign.patch -4a7cd030e107b6e35fb883c80f21a547da14f540f989555ac2c9ba08958ace5b44dca194a96b460415c71f663e885954d73b04ade55f2f9d3cb116f50df8d8ca 0002-gcc-poison-system-directories.patch -99b194f53677c3a75c3c376160673703f2d759d795ebd9f6e66d5ee095a648eba35d8aef1990a6a1e805c1cc1720636d7c23ef6102b674d92996b1e5646a0b2c 0003-specs-turn-on-Wl-z-now-by-default.patch -39013ad0b255e9cfd168010eefc32ec4d015fce2c2b4e864341a6aa8bdb74e52a08f0ae83f29e27e9524d4da27f28369a6aa4d76f6aed6490dc2961b18f90e94 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -0ef08231bef5c77a38e8deaae4e00675de4312071425cf1db46ee54c3e00d2a5d1658a68302dd495c796d397e61e79efcf4e91fbd8fb2cd2e2fa539c2e884492 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -8202e22832141fb12601546cec42472fdb194892f839e9fed86b4ab597204b6e6575c0585c283301eeb598ac1f06d16ce500d9c0ea333444bd50ae2a210d2d76 0006-Enable-Wformat-and-Wformat-security-by-default.patch -1b239b94b570a0eff2249a9ec7ad150270c3210128f8f8a67e1554a044a039b2acc69768ebc57a15cec661f039c41fb7b620e7ec65320efbce40ceec1c9c6b90 0007-Enable-Wtrampolines-by-default.patch -eb3ce4df99bf4f22ca4bac2d4e24be4c235098fb67ae118cb8efe360f0441a39a9931076fa615fbc3b7d2b2a541d4ffb2cfc56097224fbd8b5f09bc01a1d7878 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -58a5ea76b4f7d662d3165dfeaad258087b0ec58b7ff87a62971c60817388ec6191d6dc841d63696d00fb68fe16b690790f3c0639e0edbd204033b4f8bbb4dafe 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -85d60bc6ef5f41854a5bc36847917dcee24bf6663fcd70b78a164a07fc08551f74fe37329b57cf187b95e23a6d04bce2ba620f21ac80c8df7d9cfcc8052089df 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -8ef0f45bc0639464537f39319f4954d9a9ab182e14a10c6e39455bebddd24dcdbe6ec3fc0316324a4f9d7dc1f95ec8babd7112c2ff05af54534e0fbe74ff6ebf 0011-libiberty-copy-PIC-objects-during-build-process.patch -d8467365c19339e52bcf27476b338fb412b6a7dd6eefd4fd92822e67c756a1f04a106f4e0c1c1909b4bee8f5f3b506a98614c1bf3478d7714415cca9eb7257e1 0012-libgcc_s.patch -cab0cb6c462f2f4abefde020e17199366c6c24ad2582fe7d793c552aa2bcbe3148c5f6cd6245bc9ff86017d949ef4e6f063c8a01ce7d247abfe685077c57e71c 0013-nopie.patch -b1277a4edc91208fecf5ad7015e8cf237d567b310063f26d14ff39c4aade683e6d1d54d817b7f4fef79db7dc456be9f09a5a8c0ceeff784f839521d0cf243807 0014-ada-fix-shared-linking.patch -9fa42ba8374b8e47cb3d96315d783c990cf35075354869f5657383908c4d5f143ee94d1f7f86f52140a974f5fc872b22bcaec1f732ebc249357a86ad9e781d4e 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -05e1e06a6e33958ec5c22b26919fe142153c9605173ad90c770a32d7d48dfb5df421553f3030b6d979f34acbd3614d0e32c86c3cb0b819f3fbaa054f2962ff20 0016-add-fortify-headers-paths.patch -784d488cf55fafa259d3aa874f4230453b4d3aeb94158d0c96caf26524b8b7f8cea12367a72fa4616389dfcb877c4a1c4fe9d1cb57a67c0329bbad61e91ee423 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -18c1092273005f4fcaec36830a2cbfbf5e2a2e4e82cf5f7f4f7f3141dbbe2731db2f47a9869f271b4ee337835962c7dfbf009165f2988a14ff40d6c6935986ce 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -4bbce70032f125002aa857b0561c80e15588847282c2ab2851c3c507a48d22613ef3affb288c33da461688890c7ce265c6175fb1580194669621653788172d1b 0019-aarch64-disable-multilib-support.patch -d4bf0a7add6d531871324c36004f7d92eea9ad7042d567e43377e5bdde7dce8d87c649c3c4bdf0144b82d2607b46fab4eb821cf9a82ee4eddb003601b331e395 0020-s390x-disable-multilib-support.patch -e0002f9aea22c923530591f97cfb29953cd924a78b3c7ae5d15ccaae46491c1f40b03a5dc5fc17a286299b82ef48248a9ecbf6eea9bbd2058189a697e9e2ffe8 0021-ppc64-le-disable-multilib-support.patch -28b6e2f1574611964f8e2effa57dcb6efff5d562ec5f923abfa9ddeaf4a09b0c6941d1406b02d113f950113b7239dcc8dd6b14d06ade3b2f4dbdb7f6d5560bed 0022-x86_64-disable-multilib-support.patch -6955ea39199f258340b69c8aa7021c65fc15179323f50be08952a302b77cec1a720b99ada60bf2a07594ba536a50b682d06290497fc9d4553c8e11e2f536a606 0023-riscv-disable-multilib-support.patch -46bfcfc122a29060d6ff1fb52b509251ba44357df67f81be1c274fdfe9b80099b1a5ad64f7d40d8412bb437e6147cb404448b8e067989018bdaf2df5cdfabaef 0024-always-build-libgcc_eh.a.patch -07b4028c8d8c7b8bc71c0fb4e31669fb2066aefdded556d0a65773fa93db097a55e9bfa9ac9ee10fbc82e4ba21aa84738e91c331b768cf7d067407934fc30064 0025-ada-libgnarl-compatibility-for-musl.patch -7201a76ac033bd4f7532600d7a975f2aa9f93692cec42e28323e6e8e27f7357e0cb1497c12503829a41ed025e9c7953bf4738ad0d980687a774088fabaf08cdf 0026-ada-musl-support-fixes.patch -f3974d1a693c0e382fa78ae94ebf768c6a1ca0ee631b478cf52a366537edae373cd0ab31369ef1ae0627d2834bcacfb94c9a4d01505c91eaac9d228a5933d0ae 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -8f77c3a908ec92966fb1697fd40cc936d4dca2624f6f14b199ba154f8c46be773548a571b41a1cf537134b011e3426deb443e4a13e49fb763c91c821ca1bae63 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -8cd10e3d10e3da0505cb4c09c4448335e5bbd18fe6e2c47cfa1257df3d83234983d71b1fdb0b4bfc76b24d477fd6e2d771b8eefacbb61e0ca1df105b980dbd4a 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -e026f1e20b78328b55b92a5fdf8f9d1d761176d2eea90556d7be8e2bae72d0dc52fd482d1eac8ab623e98653ca56d39b18fd2139ff99d420994b10c36f266ca6 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -80b41cf68a7e56bef50c05073cc79b9eafbd37535f6360deac16dfe5498ac041aaf91c3cc1bc6e323d574cd1da65aab22df32a03e39f606bff41a103063aafef 0031-druntime-link-against-libucontext-on-all-platforms.patch -b4917017c45d170c6878c7744c1ecababef4346903ee1f684d5a59d65255a5576d16d40137f7dbfe46144907c6389035966813e9024c9a4f499e963ed533947a 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch -1cc7a5ef067bf543f6c1fa14dedc6378750a43be1649b18605699dffdc1ebce8b88405d3f12dd57e3d821c7d457d861ee0a54138c037917d6365b0bf69526e85 0033-libphobos-do-not-use-LFS64-symbols.patch -77a1426e316b96b51edef9a35a64565d5f84b94d46a2fd7293ea406ede473b449613969f9e29cae44f8fbfbc767a27cef01b36392cf8ffb3f618c0df4e217c71 0034-libgo-fix-lfs64-use.patch +1ecffba1b07d60e1b4422302b032bbea918b674c8e12b30aa6965b544d700ce86b61e9f7b8d402c6caf59257f491a394dd0912f0948565d6eae9335ee54f3b35 0001-posix_memalign.patch +163f282455b6a4df33f011bcd8b0440566ba0ffaeeab30d8ac52d39948980a56881ca0eff60687129d59556389a58b9d64e7768750bd70b1fe0fedbc9fc30dc2 0002-gcc-poison-system-directories.patch +3f24bb6a50d3c45b71ea05590e32fe3e69b91377ab185352891d5035c76ed193117c6d0b314a4c364bcf136b9a9dd5c926d6c7c30ab436976c121ebfea8d3ddd 0003-specs-turn-on-Wl-z-now-by-default.patch +17a2993027d3ddf8595952ebcae425695ddc7b1cf73b384d2e55fddecb9cbf3f6482860a502ff69b14075e12badf27300fd3039f3a9005e851fd8d121d258c2b 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +444550e55491ff89fe8cbbb4b73d017c9c147cdce1ad5c0561fe7d6ab3834515a814c7676c408cfeec18e1aaace27b3c26a2ffe4a75042285df5124976c38672 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +5a5f57e4e45745bb4d9d63d7d410fe9dd56ce12dbd70c376dd45015909307faf02391e75368e4e7404591614a874cee41b20652cf27be234765d6db97ceb4e7e 0006-Enable-Wformat-and-Wformat-security-by-default.patch +3a2b22388398a93dae7787e794cd580b9c577326f286241e086120c1fcfdd9228c2e00407088ebb163fb1acc21722c199071343551c989a958dc3c845b15132d 0007-Enable-Wtrampolines-by-default.patch +7535de1c552544e3a51cbb00b5e08ac59edbf3bdcfce2a63b9f319fada3f3676f47e3a00c75d91bcefd14500555ea0844f18c130ff46b20f416ea76071e5af39 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +93d03afd83dee5f7129c36a7b81fa8fd323476507e2f53a4fbe40a026037e7dfafa23591145d7af5848d9a322d212497947a0f58ef828734552e6a6dabd00cfa 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +da9eaf2f0ddbec5ee14dc26053936587e6c76fbf16846db804a18cf4d318579426ebcc566aed02daf8e34f60c08b61f5d3959305886dca9bbcdc84db057258d9 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +35b9aafe7eee8138cb7aad7164a8f77c15ccdce26843cee78b5871ef91d76cad22ed0871b20f51c4b89b71afd9cfe4ba4227086e158c466558513708fe7d2a1a 0011-libiberty-copy-PIC-objects-during-build-process.patch +9d43f844fad0ac6e1c35a2b6f461f9278ae09e468f2c9ae8adc43accbe6934994aa10d3a433644d1393a4a76e3caed69e3191db7f3c0c24b4e7a0a0a0cbac3f1 0012-libgcc_s.patch +b2c4921c5eef33ee43a92ab5ec7f09d5d3adb49a2416595001e6376ffdf652ef9d0dc21778c3a86e45334290dbe467a4e891ed34a6522e0c72f746def22e8663 0013-nopie.patch +0b50ad15115192699efa9fda3d4fb1c2fa95da06d7880ba34615b40c19a8256e1fe364da39f5c70dc22fbccf21db2de5900932afef68948722eeb25e435262f8 0014-ada-fix-shared-linking.patch +00097c7106625ccf02149a757366f434c48f2abe824bb8b4bf067d29308889cb6039a5e5b2d3bd2683617693b47707d549252c56eea6bc3cdc2450a8d14f46a7 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +7f0bc42b93a389b614054e700b851abfbc53db391aa10cbdf6990d41396b293af78980bb39f1cf0967184d3fbf3d46ac7c7f096717b8f193ea34cbf7f37d7e91 0016-add-fortify-headers-paths.patch +0841acbce81250f8cb140a75ff62958dfcab3bed792822baf1fe4193dd62633648343f4b66df886c12338eed88a98e591b968131416460f9f0274046019bb8ef 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +589d538bdf692559e475e53c79869734dede0eb15228cab9ca901c9db81b0e78a0e532b20dfb05ca584ea19ff4bedd83e139ddca912a26b446c5eb6905180536 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +2213e07bab6f5d8d3d39c732f5385f46cc8f0c84e35054139fdaf13051252d7bf11f647f54aa8456b532166b008fff0656d8f41278e34ba868dd6fe427427a3a 0019-aarch64-disable-multilib-support.patch +a9567947471c3ba8a547a79c55e183974554bf823d9a97a165c966d7b3caad8789980e096e3b78452ece5de062bd9bb006af464bbf0c5a35b689eac3ee21e5c5 0020-s390x-disable-multilib-support.patch +f382eb5f7c2c60c5a23fac587c9629a3059d7be0898e97a1feaf9b9cbe1ef4693cc1177eb29333e8b7944fa17487478e73958be45d5782ccb9ef501961fb9a96 0021-ppc64-le-disable-multilib-support.patch +44ab86feb8e41e7c2b2e27accdf46194c9b80ee6a39543303dc04824f669d9fad182aabd40c9c7f6c265cf9bb71be830c257be115dc9d701d54eca3aa9ef174e 0022-x86_64-disable-multilib-support.patch +e0763083c31485e8ac0b3724376a28af01bb6f50e1a054780b61886e4e3de2a35d127e6e353eb8d8729964ada9b5751bf05bdd51df539667008216db38f228a3 0023-riscv-disable-multilib-support.patch +ab88a2f63e3545bbc36537aa9a86f2c6c35e41bbf702d6e13743a405cdac4f901eed5737189b780da96647fea9f5d863fdc76373f25a00064106dcb5514d6d87 0024-always-build-libgcc_eh.a.patch +8fdbe0c8bf4ca60f458a33e59027de03d15ac91933fe46d8ca62119346d20b9bc2447c0bf22bceb63d0cf8613ab61512d9197f4e6c2224af473b63ef9f254295 0025-ada-libgnarl-compatibility-for-musl.patch +30369bea84020c32d514196ba3adb3d09d2d0359af5550bd3f9719aa357e44b2f695623c1d2a99416e120dc86896c196c5dd4f638183dced4799604137385367 0026-ada-musl-support-fixes.patch +3f9a406d7d2ce34951215ffbcadb49a45e55ad5c24ab9097c0e5e92383e43b876872ccd2a7e7def2833ab204975ee5733f8bcf90934db9fa9c4f6f56c62081f6 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +720a4001f9a1fa4122e456077ecff8d3eb8af7c83d0a81f9da6a6cca05b23664206a82a349e34482c48bfe40e99aa5f21567613d0913f6a24f282bc84a994496 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +2044c23b23726965c0a6fd39f616cc464badd650947cb40495eeabd906a3af629878c1d28b403b8eb46b30a1a0ba39083023290d62f0c99ccf070063226e3f8f 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +58e8415612e1042329ad114471852c19f6bf15bf3bfd7cd81ceeafa75778bcc28410a01071a7c8cbf12b8f549acd85723215772813deedb8f266e28b9e01a353 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +d47b559075f40d526235f47b91da1d0cf6bfe6c5b7311bbfe08af9dd6e8f27e6c7cd82e3b2d529aab0536246fc56e2d42c089b22cacb0e7f09ca4a9d07556994 0031-druntime-link-against-libucontext-on-all-platforms.patch +b325035cb7122d79c6b42ca6d3fc9e02319ed2f7cddb0639dff25d2798d2ce63812cd623462cdf95e21c9ffbf2412193f8b9fc89a4c36fa5a6a041661ac7399d 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +c474f34e6f9a4239d486a65141a133dbe8ce91427d502a57a9fd6eb403478a2b5715ba74f24c1cc0761e16eec77ba2c1ca921fb7d7bc1e040fc3703fc9559e75 0033-libphobos-do-not-use-LFS64-symbols.patch +c4482ffc36e7894b2140800159f4cbc9a3e9011e43a69b69f4fa92d5a11e2ee645c7e21df4423dd1e0636e8890849a5719647bfbdf84f951d638f8f488cb718c 0034-libgo-fix-lfs64-use.patch +048d767f4477c92ee6835850d13063ede21c0be751d0945c94445d04054e134cdc617eeb0b1ac8c892a604d8644580fcfebeccaf537d6b7380558ac6378e445a 0035-Fix-ICE-observed-in-PR110280.patch " diff --git a/cross/gcc-armv7/0001-posix_memalign.patch b/cross/gcc-armv7/0001-posix_memalign.patch index 9fdc9fc49..04240c29c 100644 --- a/cross/gcc-armv7/0001-posix_memalign.patch +++ b/cross/gcc-armv7/0001-posix_memalign.patch @@ -1,7 +1,7 @@ From 47b4bd4deb2c356bb07d2a96f22127aefafec3a4 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/34] posix_memalign +Subject: [PATCH 01/35] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-armv7/0002-gcc-poison-system-directories.patch b/cross/gcc-armv7/0002-gcc-poison-system-directories.patch index 8f0e2f178..b14c921c2 100644 --- a/cross/gcc-armv7/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-armv7/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ From 4fa620d8c3e6730211bfb071eb4c817320491bd0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/34] gcc: poison-system-directories +Subject: [PATCH 02/35] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch index f69c0b7b6..bfb0a6eba 100644 --- a/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ From ff4dd4ce33133e675b7bedc86b73357c04631cb9 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/34] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/35] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index 130674a1e..13785a24e 100644 --- a/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ From 1b315235433701e4a974da259b8d651169ddc7ac Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/34] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/35] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index d533c67f9..d229bcfa0 100644 --- a/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ From 67c0f5789630b27149f60ff831999ef7c1dba5d5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/34] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/35] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 38aa4cf7c..55dff3692 100644 --- a/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ From bb25e8489384504cd59e4a2538720863da1fb29c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/34] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/35] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch index c1fd924f1..eb7aae838 100644 --- a/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ From 4a728ad48a7b437cc6f2697e26603bf648149f86 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/34] Enable -Wtrampolines by default. +Subject: [PATCH 07/35] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 5b6e4c155..69c1bf725 100644 --- a/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ From 32f24560d0602f7735d5e9efd92fe3151bd72cea Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/34] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/35] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index 726a645ad..f4dd52f19 100644 --- a/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ From c7ec8da7280d7f97f5543eb9ddeca7600aafc43c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/34] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/35] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 5689b62ab..f56d41a57 100644 --- a/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ From aaa029bcee68298695b7c4278c90b6bc320d098c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/34] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/35] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch index 4967119c5..b12d4f94b 100644 --- a/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ From 65e01e749205c9af218b01233cebd0077538d0ee Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/34] libiberty: copy PIC objects during build process +Subject: [PATCH 11/35] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-armv7/0012-libgcc_s.patch b/cross/gcc-armv7/0012-libgcc_s.patch index 75888cc6c..d8bbc602f 100644 --- a/cross/gcc-armv7/0012-libgcc_s.patch +++ b/cross/gcc-armv7/0012-libgcc_s.patch @@ -1,7 +1,7 @@ From 453a815bf2844971a91eaef800af188d9e86b784 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/34] libgcc_s +Subject: [PATCH 12/35] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-armv7/0013-nopie.patch b/cross/gcc-armv7/0013-nopie.patch index 2eeac39a1..28a765ef2 100644 --- a/cross/gcc-armv7/0013-nopie.patch +++ b/cross/gcc-armv7/0013-nopie.patch @@ -1,7 +1,7 @@ From 7d7d12137c666761a8dd61179c9651b85dae9b41 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/34] nopie +Subject: [PATCH 13/35] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-armv7/0014-ada-fix-shared-linking.patch b/cross/gcc-armv7/0014-ada-fix-shared-linking.patch index de224ceb0..ff6e42921 100644 --- a/cross/gcc-armv7/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-armv7/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ From dd5bb97c31a9f57034c70a7a18ba6e2e133084c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/34] ada: fix shared linking +Subject: [PATCH 14/35] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 8065fca24..937cad8a7 100644 --- a/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ From 6bb5b7d9161d05f31b001d8211a9c63caf63fd2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/34] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/35] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-armv7/0016-add-fortify-headers-paths.patch b/cross/gcc-armv7/0016-add-fortify-headers-paths.patch index 2a9c512a3..b554e0251 100644 --- a/cross/gcc-armv7/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-armv7/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ From f0d9e00cac06689f64b214de7aee80d7116ef084 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/34] add fortify-headers paths +Subject: [PATCH 16/35] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index a7dd84044..96972482c 100644 --- a/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ From 857db04f4f1a06e866551b4172fe8f27363f4a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/34] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/35] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 76d9417b4..a9612913e 100644 --- a/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ From 5a8347e23ab13912b6edec2c6c6e3a101b017c79 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/34] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/35] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch b/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch index 81bfc7491..5a8148feb 100644 --- a/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 41d00a2eb0754acf71958808bd17dbebeb517b84 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/34] aarch64: disable multilib support +Subject: [PATCH 19/35] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch b/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch index b13573a27..ef2f449a4 100644 --- a/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 85b42bfbba71616831d14360b16998acb28790fd Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/34] s390x: disable multilib support +Subject: [PATCH 20/35] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch index 58261e231..dbdc78828 100644 --- a/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 7b53df284242638e940c0155b6c21e88cea1f55b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/34] ppc64[le]: disable multilib support +Subject: [PATCH 21/35] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch b/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch index f435876c8..2b2f3e7f3 100644 --- a/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 96e7e1e9a899d9bb5fcbdf788bd529d0390c626f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/34] x86_64: disable multilib support +Subject: [PATCH 22/35] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch b/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch index f0055e1a1..b919defc3 100644 --- a/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ From b26224acf342eacb33491f6ea0da1faf73d35715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/34] riscv: disable multilib support +Subject: [PATCH 23/35] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch b/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch index 2dd993a4b..6b0514e98 100644 --- a/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ From a72e0613f79f6b6867819317accb7a714031a08c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/34] always build libgcc_eh.a +Subject: [PATCH 24/35] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch index 8290c8251..b7c1c5f2f 100644 --- a/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ From 3ee8cbc1cad261b30d4a7a66d31496d5f243ce2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/34] ada: libgnarl compatibility for musl +Subject: [PATCH 25/35] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-armv7/0026-ada-musl-support-fixes.patch b/cross/gcc-armv7/0026-ada-musl-support-fixes.patch index 823065b48..ada929350 100644 --- a/cross/gcc-armv7/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-armv7/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ From 3df4788c79c7429b196c7b284af2b4cf9a4b4f8d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/34] ada: musl support fixes +Subject: [PATCH 26/35] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index 17699b3ac..fcf74ee38 100644 --- a/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/34] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index a6de49018..f92fc7bf4 100644 --- a/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ From 5bbbd320e54ab5341cfba83e8af98685131caba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/34] configure: fix detection of atomic builtins in +Subject: [PATCH 28/35] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index b1e9db0e4..4418cd5b5 100644 --- a/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ From 430c701a3cefbe09a9c7c8a2f5bbe957f9b2ecb2 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/34] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/35] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index 6d27176cf..6c5bf838d 100644 --- a/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ From 05f0043755f341a2ff4f845379327076b3e0203d Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/34] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/35] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch index 3c8833f17..eb7aa6d21 100644 --- a/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ From 0b89a74fbf77ae6917f043c79cd03db0d6ef0212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/34] druntime: link against libucontext on all platforms +Subject: [PATCH 31/35] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index 132eb8ef0..e1679a8e5 100644 --- a/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ From eeec799f43fbd0bfffc13594585b39d708972511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/34] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/35] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch index 844484cb5..138bd64b7 100644 --- a/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch +++ b/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -1,7 +1,7 @@ From b71d21b87e6946c763edad5e420bf22d8a453077 Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 29 May 2023 15:33:11 +0000 -Subject: [PATCH 33/34] libphobos: do not use LFS64 symbols +Subject: [PATCH 33/35] libphobos: do not use LFS64 symbols musl does not have these since 1.2.4, we can't use the compat interfaces. --- diff --git a/cross/gcc-armv7/0034-libgo-fix-lfs64-use.patch b/cross/gcc-armv7/0034-libgo-fix-lfs64-use.patch index 4789cd1e8..cf47858d6 100644 --- a/cross/gcc-armv7/0034-libgo-fix-lfs64-use.patch +++ b/cross/gcc-armv7/0034-libgo-fix-lfs64-use.patch @@ -1,7 +1,7 @@ From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 10 Jul 2023 23:23:29 +0000 -Subject: [PATCH 34/34] libgo: fix lfs64 use +Subject: [PATCH 34/35] libgo: fix lfs64 use --- .../go/internal/syscall/unix/at_largefile.go | 2 +- diff --git a/cross/gcc-armv7/0035-Fix-ICE-observed-in-PR110280.patch b/cross/gcc-armv7/0035-Fix-ICE-observed-in-PR110280.patch new file mode 100644 index 000000000..b9a7eaf0f --- /dev/null +++ b/cross/gcc-armv7/0035-Fix-ICE-observed-in-PR110280.patch @@ -0,0 +1,61 @@ +From ef740fff300fd9eb8285fb5611f6205705ee54ec Mon Sep 17 00:00:00 2001 +From: Prathamesh Kulkarni +Date: Fri, 23 Jun 2023 15:27:17 +0530 +Subject: [PATCH 35/35] Fix ICE observed in PR110280. + +gcc/ChangeLog: + PR tree-optimization/110280 + * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector + using build_vector_from_val with the element of input operand, and + mask's type if operand and mask's types don't match. + +gcc/testsuite/ChangeLog: + PR tree-optimization/110280 + * gcc.target/aarch64/sve/pr110280.c: New test. +--- + gcc/match.pd | 9 ++++++++- + gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++ + 2 files changed, 20 insertions(+), 1 deletion(-) + create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c + +diff --git a/gcc/match.pd b/gcc/match.pd +index 91182448250..c3bb4fbc0a7 100644 +--- a/gcc/match.pd ++++ b/gcc/match.pd +@@ -8292,7 +8292,14 @@ and, + + (simplify + (vec_perm vec_same_elem_p@0 @0 @1) +- @0) ++ (if (types_match (type, TREE_TYPE (@0))) ++ @0 ++ (with ++ { ++ tree elem = uniform_vector_p (@0); ++ } ++ (if (elem) ++ { build_vector_from_val (type, elem); })))) + + /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */ + (simplify +diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +new file mode 100644 +index 00000000000..d3279f38362 +--- /dev/null ++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +@@ -0,0 +1,12 @@ ++/* { dg-do compile } */ ++/* { dg-options "-O3 -fdump-tree-optimized" } */ ++ ++#include "arm_sve.h" ++ ++svuint32_t l() ++{ ++ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0}; ++ return svld1rq_u32(svptrue_b8(), lanes); ++} ++ ++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */ +-- +2.41.0 + diff --git a/cross/gcc-armv7/APKBUILD b/cross/gcc-armv7/APKBUILD index 3b378e3ea..df17fa5d6 100644 --- a/cross/gcc-armv7/APKBUILD +++ b/cross/gcc-armv7/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armv7 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for armv7" url="https://gcc.gnu.org" arch="x86_64" @@ -268,6 +268,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch 0033-libphobos-do-not-use-LFS64-symbols.patch 0034-libgo-fix-lfs64-use.patch + 0035-Fix-ICE-observed-in-PR110280.patch " # we build out-of-tree @@ -782,38 +783,39 @@ gdb() { sha512sums=" 284719308cad4546ebd85934fb9f12112e8f1a4c3e5beea0760da1f73509907c194e7c133e6e755b6148bd1c51a72c071ac0d16b05641d901af7105461686655 gcc-13-20230722.tar.xz -438eda29a1851c72e65422bb4cd129ecc016f06f9bd038288e39762c01b932f786ed4aad587c7b16baf948c342c10dc9beff125166b97e0b8e0d05789aec95ce 0001-posix_memalign.patch -4a7cd030e107b6e35fb883c80f21a547da14f540f989555ac2c9ba08958ace5b44dca194a96b460415c71f663e885954d73b04ade55f2f9d3cb116f50df8d8ca 0002-gcc-poison-system-directories.patch -99b194f53677c3a75c3c376160673703f2d759d795ebd9f6e66d5ee095a648eba35d8aef1990a6a1e805c1cc1720636d7c23ef6102b674d92996b1e5646a0b2c 0003-specs-turn-on-Wl-z-now-by-default.patch -39013ad0b255e9cfd168010eefc32ec4d015fce2c2b4e864341a6aa8bdb74e52a08f0ae83f29e27e9524d4da27f28369a6aa4d76f6aed6490dc2961b18f90e94 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -0ef08231bef5c77a38e8deaae4e00675de4312071425cf1db46ee54c3e00d2a5d1658a68302dd495c796d397e61e79efcf4e91fbd8fb2cd2e2fa539c2e884492 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -8202e22832141fb12601546cec42472fdb194892f839e9fed86b4ab597204b6e6575c0585c283301eeb598ac1f06d16ce500d9c0ea333444bd50ae2a210d2d76 0006-Enable-Wformat-and-Wformat-security-by-default.patch -1b239b94b570a0eff2249a9ec7ad150270c3210128f8f8a67e1554a044a039b2acc69768ebc57a15cec661f039c41fb7b620e7ec65320efbce40ceec1c9c6b90 0007-Enable-Wtrampolines-by-default.patch -eb3ce4df99bf4f22ca4bac2d4e24be4c235098fb67ae118cb8efe360f0441a39a9931076fa615fbc3b7d2b2a541d4ffb2cfc56097224fbd8b5f09bc01a1d7878 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -58a5ea76b4f7d662d3165dfeaad258087b0ec58b7ff87a62971c60817388ec6191d6dc841d63696d00fb68fe16b690790f3c0639e0edbd204033b4f8bbb4dafe 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -85d60bc6ef5f41854a5bc36847917dcee24bf6663fcd70b78a164a07fc08551f74fe37329b57cf187b95e23a6d04bce2ba620f21ac80c8df7d9cfcc8052089df 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -8ef0f45bc0639464537f39319f4954d9a9ab182e14a10c6e39455bebddd24dcdbe6ec3fc0316324a4f9d7dc1f95ec8babd7112c2ff05af54534e0fbe74ff6ebf 0011-libiberty-copy-PIC-objects-during-build-process.patch -d8467365c19339e52bcf27476b338fb412b6a7dd6eefd4fd92822e67c756a1f04a106f4e0c1c1909b4bee8f5f3b506a98614c1bf3478d7714415cca9eb7257e1 0012-libgcc_s.patch -cab0cb6c462f2f4abefde020e17199366c6c24ad2582fe7d793c552aa2bcbe3148c5f6cd6245bc9ff86017d949ef4e6f063c8a01ce7d247abfe685077c57e71c 0013-nopie.patch -b1277a4edc91208fecf5ad7015e8cf237d567b310063f26d14ff39c4aade683e6d1d54d817b7f4fef79db7dc456be9f09a5a8c0ceeff784f839521d0cf243807 0014-ada-fix-shared-linking.patch -9fa42ba8374b8e47cb3d96315d783c990cf35075354869f5657383908c4d5f143ee94d1f7f86f52140a974f5fc872b22bcaec1f732ebc249357a86ad9e781d4e 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -05e1e06a6e33958ec5c22b26919fe142153c9605173ad90c770a32d7d48dfb5df421553f3030b6d979f34acbd3614d0e32c86c3cb0b819f3fbaa054f2962ff20 0016-add-fortify-headers-paths.patch -784d488cf55fafa259d3aa874f4230453b4d3aeb94158d0c96caf26524b8b7f8cea12367a72fa4616389dfcb877c4a1c4fe9d1cb57a67c0329bbad61e91ee423 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -18c1092273005f4fcaec36830a2cbfbf5e2a2e4e82cf5f7f4f7f3141dbbe2731db2f47a9869f271b4ee337835962c7dfbf009165f2988a14ff40d6c6935986ce 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -4bbce70032f125002aa857b0561c80e15588847282c2ab2851c3c507a48d22613ef3affb288c33da461688890c7ce265c6175fb1580194669621653788172d1b 0019-aarch64-disable-multilib-support.patch -d4bf0a7add6d531871324c36004f7d92eea9ad7042d567e43377e5bdde7dce8d87c649c3c4bdf0144b82d2607b46fab4eb821cf9a82ee4eddb003601b331e395 0020-s390x-disable-multilib-support.patch -e0002f9aea22c923530591f97cfb29953cd924a78b3c7ae5d15ccaae46491c1f40b03a5dc5fc17a286299b82ef48248a9ecbf6eea9bbd2058189a697e9e2ffe8 0021-ppc64-le-disable-multilib-support.patch -28b6e2f1574611964f8e2effa57dcb6efff5d562ec5f923abfa9ddeaf4a09b0c6941d1406b02d113f950113b7239dcc8dd6b14d06ade3b2f4dbdb7f6d5560bed 0022-x86_64-disable-multilib-support.patch -6955ea39199f258340b69c8aa7021c65fc15179323f50be08952a302b77cec1a720b99ada60bf2a07594ba536a50b682d06290497fc9d4553c8e11e2f536a606 0023-riscv-disable-multilib-support.patch -46bfcfc122a29060d6ff1fb52b509251ba44357df67f81be1c274fdfe9b80099b1a5ad64f7d40d8412bb437e6147cb404448b8e067989018bdaf2df5cdfabaef 0024-always-build-libgcc_eh.a.patch -07b4028c8d8c7b8bc71c0fb4e31669fb2066aefdded556d0a65773fa93db097a55e9bfa9ac9ee10fbc82e4ba21aa84738e91c331b768cf7d067407934fc30064 0025-ada-libgnarl-compatibility-for-musl.patch -7201a76ac033bd4f7532600d7a975f2aa9f93692cec42e28323e6e8e27f7357e0cb1497c12503829a41ed025e9c7953bf4738ad0d980687a774088fabaf08cdf 0026-ada-musl-support-fixes.patch -f3974d1a693c0e382fa78ae94ebf768c6a1ca0ee631b478cf52a366537edae373cd0ab31369ef1ae0627d2834bcacfb94c9a4d01505c91eaac9d228a5933d0ae 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -8f77c3a908ec92966fb1697fd40cc936d4dca2624f6f14b199ba154f8c46be773548a571b41a1cf537134b011e3426deb443e4a13e49fb763c91c821ca1bae63 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -8cd10e3d10e3da0505cb4c09c4448335e5bbd18fe6e2c47cfa1257df3d83234983d71b1fdb0b4bfc76b24d477fd6e2d771b8eefacbb61e0ca1df105b980dbd4a 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -e026f1e20b78328b55b92a5fdf8f9d1d761176d2eea90556d7be8e2bae72d0dc52fd482d1eac8ab623e98653ca56d39b18fd2139ff99d420994b10c36f266ca6 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -80b41cf68a7e56bef50c05073cc79b9eafbd37535f6360deac16dfe5498ac041aaf91c3cc1bc6e323d574cd1da65aab22df32a03e39f606bff41a103063aafef 0031-druntime-link-against-libucontext-on-all-platforms.patch -b4917017c45d170c6878c7744c1ecababef4346903ee1f684d5a59d65255a5576d16d40137f7dbfe46144907c6389035966813e9024c9a4f499e963ed533947a 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch -1cc7a5ef067bf543f6c1fa14dedc6378750a43be1649b18605699dffdc1ebce8b88405d3f12dd57e3d821c7d457d861ee0a54138c037917d6365b0bf69526e85 0033-libphobos-do-not-use-LFS64-symbols.patch -77a1426e316b96b51edef9a35a64565d5f84b94d46a2fd7293ea406ede473b449613969f9e29cae44f8fbfbc767a27cef01b36392cf8ffb3f618c0df4e217c71 0034-libgo-fix-lfs64-use.patch +1ecffba1b07d60e1b4422302b032bbea918b674c8e12b30aa6965b544d700ce86b61e9f7b8d402c6caf59257f491a394dd0912f0948565d6eae9335ee54f3b35 0001-posix_memalign.patch +163f282455b6a4df33f011bcd8b0440566ba0ffaeeab30d8ac52d39948980a56881ca0eff60687129d59556389a58b9d64e7768750bd70b1fe0fedbc9fc30dc2 0002-gcc-poison-system-directories.patch +3f24bb6a50d3c45b71ea05590e32fe3e69b91377ab185352891d5035c76ed193117c6d0b314a4c364bcf136b9a9dd5c926d6c7c30ab436976c121ebfea8d3ddd 0003-specs-turn-on-Wl-z-now-by-default.patch +17a2993027d3ddf8595952ebcae425695ddc7b1cf73b384d2e55fddecb9cbf3f6482860a502ff69b14075e12badf27300fd3039f3a9005e851fd8d121d258c2b 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +444550e55491ff89fe8cbbb4b73d017c9c147cdce1ad5c0561fe7d6ab3834515a814c7676c408cfeec18e1aaace27b3c26a2ffe4a75042285df5124976c38672 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +5a5f57e4e45745bb4d9d63d7d410fe9dd56ce12dbd70c376dd45015909307faf02391e75368e4e7404591614a874cee41b20652cf27be234765d6db97ceb4e7e 0006-Enable-Wformat-and-Wformat-security-by-default.patch +3a2b22388398a93dae7787e794cd580b9c577326f286241e086120c1fcfdd9228c2e00407088ebb163fb1acc21722c199071343551c989a958dc3c845b15132d 0007-Enable-Wtrampolines-by-default.patch +7535de1c552544e3a51cbb00b5e08ac59edbf3bdcfce2a63b9f319fada3f3676f47e3a00c75d91bcefd14500555ea0844f18c130ff46b20f416ea76071e5af39 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +93d03afd83dee5f7129c36a7b81fa8fd323476507e2f53a4fbe40a026037e7dfafa23591145d7af5848d9a322d212497947a0f58ef828734552e6a6dabd00cfa 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +da9eaf2f0ddbec5ee14dc26053936587e6c76fbf16846db804a18cf4d318579426ebcc566aed02daf8e34f60c08b61f5d3959305886dca9bbcdc84db057258d9 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +35b9aafe7eee8138cb7aad7164a8f77c15ccdce26843cee78b5871ef91d76cad22ed0871b20f51c4b89b71afd9cfe4ba4227086e158c466558513708fe7d2a1a 0011-libiberty-copy-PIC-objects-during-build-process.patch +9d43f844fad0ac6e1c35a2b6f461f9278ae09e468f2c9ae8adc43accbe6934994aa10d3a433644d1393a4a76e3caed69e3191db7f3c0c24b4e7a0a0a0cbac3f1 0012-libgcc_s.patch +b2c4921c5eef33ee43a92ab5ec7f09d5d3adb49a2416595001e6376ffdf652ef9d0dc21778c3a86e45334290dbe467a4e891ed34a6522e0c72f746def22e8663 0013-nopie.patch +0b50ad15115192699efa9fda3d4fb1c2fa95da06d7880ba34615b40c19a8256e1fe364da39f5c70dc22fbccf21db2de5900932afef68948722eeb25e435262f8 0014-ada-fix-shared-linking.patch +00097c7106625ccf02149a757366f434c48f2abe824bb8b4bf067d29308889cb6039a5e5b2d3bd2683617693b47707d549252c56eea6bc3cdc2450a8d14f46a7 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +7f0bc42b93a389b614054e700b851abfbc53db391aa10cbdf6990d41396b293af78980bb39f1cf0967184d3fbf3d46ac7c7f096717b8f193ea34cbf7f37d7e91 0016-add-fortify-headers-paths.patch +0841acbce81250f8cb140a75ff62958dfcab3bed792822baf1fe4193dd62633648343f4b66df886c12338eed88a98e591b968131416460f9f0274046019bb8ef 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +589d538bdf692559e475e53c79869734dede0eb15228cab9ca901c9db81b0e78a0e532b20dfb05ca584ea19ff4bedd83e139ddca912a26b446c5eb6905180536 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +2213e07bab6f5d8d3d39c732f5385f46cc8f0c84e35054139fdaf13051252d7bf11f647f54aa8456b532166b008fff0656d8f41278e34ba868dd6fe427427a3a 0019-aarch64-disable-multilib-support.patch +a9567947471c3ba8a547a79c55e183974554bf823d9a97a165c966d7b3caad8789980e096e3b78452ece5de062bd9bb006af464bbf0c5a35b689eac3ee21e5c5 0020-s390x-disable-multilib-support.patch +f382eb5f7c2c60c5a23fac587c9629a3059d7be0898e97a1feaf9b9cbe1ef4693cc1177eb29333e8b7944fa17487478e73958be45d5782ccb9ef501961fb9a96 0021-ppc64-le-disable-multilib-support.patch +44ab86feb8e41e7c2b2e27accdf46194c9b80ee6a39543303dc04824f669d9fad182aabd40c9c7f6c265cf9bb71be830c257be115dc9d701d54eca3aa9ef174e 0022-x86_64-disable-multilib-support.patch +e0763083c31485e8ac0b3724376a28af01bb6f50e1a054780b61886e4e3de2a35d127e6e353eb8d8729964ada9b5751bf05bdd51df539667008216db38f228a3 0023-riscv-disable-multilib-support.patch +ab88a2f63e3545bbc36537aa9a86f2c6c35e41bbf702d6e13743a405cdac4f901eed5737189b780da96647fea9f5d863fdc76373f25a00064106dcb5514d6d87 0024-always-build-libgcc_eh.a.patch +8fdbe0c8bf4ca60f458a33e59027de03d15ac91933fe46d8ca62119346d20b9bc2447c0bf22bceb63d0cf8613ab61512d9197f4e6c2224af473b63ef9f254295 0025-ada-libgnarl-compatibility-for-musl.patch +30369bea84020c32d514196ba3adb3d09d2d0359af5550bd3f9719aa357e44b2f695623c1d2a99416e120dc86896c196c5dd4f638183dced4799604137385367 0026-ada-musl-support-fixes.patch +3f9a406d7d2ce34951215ffbcadb49a45e55ad5c24ab9097c0e5e92383e43b876872ccd2a7e7def2833ab204975ee5733f8bcf90934db9fa9c4f6f56c62081f6 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +720a4001f9a1fa4122e456077ecff8d3eb8af7c83d0a81f9da6a6cca05b23664206a82a349e34482c48bfe40e99aa5f21567613d0913f6a24f282bc84a994496 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +2044c23b23726965c0a6fd39f616cc464badd650947cb40495eeabd906a3af629878c1d28b403b8eb46b30a1a0ba39083023290d62f0c99ccf070063226e3f8f 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +58e8415612e1042329ad114471852c19f6bf15bf3bfd7cd81ceeafa75778bcc28410a01071a7c8cbf12b8f549acd85723215772813deedb8f266e28b9e01a353 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +d47b559075f40d526235f47b91da1d0cf6bfe6c5b7311bbfe08af9dd6e8f27e6c7cd82e3b2d529aab0536246fc56e2d42c089b22cacb0e7f09ca4a9d07556994 0031-druntime-link-against-libucontext-on-all-platforms.patch +b325035cb7122d79c6b42ca6d3fc9e02319ed2f7cddb0639dff25d2798d2ce63812cd623462cdf95e21c9ffbf2412193f8b9fc89a4c36fa5a6a041661ac7399d 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +c474f34e6f9a4239d486a65141a133dbe8ce91427d502a57a9fd6eb403478a2b5715ba74f24c1cc0761e16eec77ba2c1ca921fb7d7bc1e040fc3703fc9559e75 0033-libphobos-do-not-use-LFS64-symbols.patch +c4482ffc36e7894b2140800159f4cbc9a3e9011e43a69b69f4fa92d5a11e2ee645c7e21df4423dd1e0636e8890849a5719647bfbdf84f951d638f8f488cb718c 0034-libgo-fix-lfs64-use.patch +048d767f4477c92ee6835850d13063ede21c0be751d0945c94445d04054e134cdc617eeb0b1ac8c892a604d8644580fcfebeccaf537d6b7380558ac6378e445a 0035-Fix-ICE-observed-in-PR110280.patch " diff --git a/cross/gcc-riscv64/0001-posix_memalign.patch b/cross/gcc-riscv64/0001-posix_memalign.patch index 9fdc9fc49..04240c29c 100644 --- a/cross/gcc-riscv64/0001-posix_memalign.patch +++ b/cross/gcc-riscv64/0001-posix_memalign.patch @@ -1,7 +1,7 @@ From 47b4bd4deb2c356bb07d2a96f22127aefafec3a4 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/34] posix_memalign +Subject: [PATCH 01/35] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch b/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch index 8f0e2f178..b14c921c2 100644 --- a/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ From 4fa620d8c3e6730211bfb071eb4c817320491bd0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/34] gcc: poison-system-directories +Subject: [PATCH 02/35] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch index f69c0b7b6..bfb0a6eba 100644 --- a/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ From ff4dd4ce33133e675b7bedc86b73357c04631cb9 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/34] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/35] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index 130674a1e..13785a24e 100644 --- a/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ From 1b315235433701e4a974da259b8d651169ddc7ac Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/34] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/35] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index d533c67f9..d229bcfa0 100644 --- a/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ From 67c0f5789630b27149f60ff831999ef7c1dba5d5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/34] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/35] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 38aa4cf7c..55dff3692 100644 --- a/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ From bb25e8489384504cd59e4a2538720863da1fb29c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/34] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/35] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch index c1fd924f1..eb7aae838 100644 --- a/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ From 4a728ad48a7b437cc6f2697e26603bf648149f86 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/34] Enable -Wtrampolines by default. +Subject: [PATCH 07/35] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 5b6e4c155..69c1bf725 100644 --- a/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ From 32f24560d0602f7735d5e9efd92fe3151bd72cea Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/34] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/35] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index 726a645ad..f4dd52f19 100644 --- a/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ From c7ec8da7280d7f97f5543eb9ddeca7600aafc43c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/34] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/35] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 5689b62ab..f56d41a57 100644 --- a/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ From aaa029bcee68298695b7c4278c90b6bc320d098c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/34] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/35] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch index 4967119c5..b12d4f94b 100644 --- a/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ From 65e01e749205c9af218b01233cebd0077538d0ee Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/34] libiberty: copy PIC objects during build process +Subject: [PATCH 11/35] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-riscv64/0012-libgcc_s.patch b/cross/gcc-riscv64/0012-libgcc_s.patch index 75888cc6c..d8bbc602f 100644 --- a/cross/gcc-riscv64/0012-libgcc_s.patch +++ b/cross/gcc-riscv64/0012-libgcc_s.patch @@ -1,7 +1,7 @@ From 453a815bf2844971a91eaef800af188d9e86b784 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/34] libgcc_s +Subject: [PATCH 12/35] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-riscv64/0013-nopie.patch b/cross/gcc-riscv64/0013-nopie.patch index 2eeac39a1..28a765ef2 100644 --- a/cross/gcc-riscv64/0013-nopie.patch +++ b/cross/gcc-riscv64/0013-nopie.patch @@ -1,7 +1,7 @@ From 7d7d12137c666761a8dd61179c9651b85dae9b41 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/34] nopie +Subject: [PATCH 13/35] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch b/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch index de224ceb0..ff6e42921 100644 --- a/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ From dd5bb97c31a9f57034c70a7a18ba6e2e133084c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/34] ada: fix shared linking +Subject: [PATCH 14/35] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 8065fca24..937cad8a7 100644 --- a/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ From 6bb5b7d9161d05f31b001d8211a9c63caf63fd2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/34] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/35] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch b/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch index 2a9c512a3..b554e0251 100644 --- a/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ From f0d9e00cac06689f64b214de7aee80d7116ef084 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/34] add fortify-headers paths +Subject: [PATCH 16/35] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index a7dd84044..96972482c 100644 --- a/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ From 857db04f4f1a06e866551b4172fe8f27363f4a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/34] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/35] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 76d9417b4..a9612913e 100644 --- a/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ From 5a8347e23ab13912b6edec2c6c6e3a101b017c79 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/34] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/35] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch b/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch index 81bfc7491..5a8148feb 100644 --- a/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 41d00a2eb0754acf71958808bd17dbebeb517b84 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/34] aarch64: disable multilib support +Subject: [PATCH 19/35] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch b/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch index b13573a27..ef2f449a4 100644 --- a/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 85b42bfbba71616831d14360b16998acb28790fd Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/34] s390x: disable multilib support +Subject: [PATCH 20/35] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch index 58261e231..dbdc78828 100644 --- a/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 7b53df284242638e940c0155b6c21e88cea1f55b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/34] ppc64[le]: disable multilib support +Subject: [PATCH 21/35] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch b/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch index f435876c8..2b2f3e7f3 100644 --- a/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ From 96e7e1e9a899d9bb5fcbdf788bd529d0390c626f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/34] x86_64: disable multilib support +Subject: [PATCH 22/35] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch b/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch index f0055e1a1..b919defc3 100644 --- a/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ From b26224acf342eacb33491f6ea0da1faf73d35715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/34] riscv: disable multilib support +Subject: [PATCH 23/35] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch b/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch index 2dd993a4b..6b0514e98 100644 --- a/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ From a72e0613f79f6b6867819317accb7a714031a08c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/34] always build libgcc_eh.a +Subject: [PATCH 24/35] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch index 8290c8251..b7c1c5f2f 100644 --- a/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ From 3ee8cbc1cad261b30d4a7a66d31496d5f243ce2f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/34] ada: libgnarl compatibility for musl +Subject: [PATCH 25/35] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch b/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch index 823065b48..ada929350 100644 --- a/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ From 3df4788c79c7429b196c7b284af2b4cf9a4b4f8d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/34] ada: musl support fixes +Subject: [PATCH 26/35] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index 17699b3ac..fcf74ee38 100644 --- a/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/34] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index a6de49018..f92fc7bf4 100644 --- a/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ From 5bbbd320e54ab5341cfba83e8af98685131caba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/34] configure: fix detection of atomic builtins in +Subject: [PATCH 28/35] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index b1e9db0e4..4418cd5b5 100644 --- a/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ From 430c701a3cefbe09a9c7c8a2f5bbe957f9b2ecb2 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/34] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/35] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index 6d27176cf..6c5bf838d 100644 --- a/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ From 05f0043755f341a2ff4f845379327076b3e0203d Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/34] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/35] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch index 3c8833f17..eb7aa6d21 100644 --- a/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ From 0b89a74fbf77ae6917f043c79cd03db0d6ef0212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/34] druntime: link against libucontext on all platforms +Subject: [PATCH 31/35] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index 132eb8ef0..e1679a8e5 100644 --- a/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ From eeec799f43fbd0bfffc13594585b39d708972511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/34] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/35] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch index 844484cb5..138bd64b7 100644 --- a/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch +++ b/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -1,7 +1,7 @@ From b71d21b87e6946c763edad5e420bf22d8a453077 Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 29 May 2023 15:33:11 +0000 -Subject: [PATCH 33/34] libphobos: do not use LFS64 symbols +Subject: [PATCH 33/35] libphobos: do not use LFS64 symbols musl does not have these since 1.2.4, we can't use the compat interfaces. --- diff --git a/cross/gcc-riscv64/0034-libgo-fix-lfs64-use.patch b/cross/gcc-riscv64/0034-libgo-fix-lfs64-use.patch index 4789cd1e8..cf47858d6 100644 --- a/cross/gcc-riscv64/0034-libgo-fix-lfs64-use.patch +++ b/cross/gcc-riscv64/0034-libgo-fix-lfs64-use.patch @@ -1,7 +1,7 @@ From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001 From: psykose Date: Mon, 10 Jul 2023 23:23:29 +0000 -Subject: [PATCH 34/34] libgo: fix lfs64 use +Subject: [PATCH 34/35] libgo: fix lfs64 use --- .../go/internal/syscall/unix/at_largefile.go | 2 +- diff --git a/cross/gcc-riscv64/0035-Fix-ICE-observed-in-PR110280.patch b/cross/gcc-riscv64/0035-Fix-ICE-observed-in-PR110280.patch new file mode 100644 index 000000000..b9a7eaf0f --- /dev/null +++ b/cross/gcc-riscv64/0035-Fix-ICE-observed-in-PR110280.patch @@ -0,0 +1,61 @@ +From ef740fff300fd9eb8285fb5611f6205705ee54ec Mon Sep 17 00:00:00 2001 +From: Prathamesh Kulkarni +Date: Fri, 23 Jun 2023 15:27:17 +0530 +Subject: [PATCH 35/35] Fix ICE observed in PR110280. + +gcc/ChangeLog: + PR tree-optimization/110280 + * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector + using build_vector_from_val with the element of input operand, and + mask's type if operand and mask's types don't match. + +gcc/testsuite/ChangeLog: + PR tree-optimization/110280 + * gcc.target/aarch64/sve/pr110280.c: New test. +--- + gcc/match.pd | 9 ++++++++- + gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++ + 2 files changed, 20 insertions(+), 1 deletion(-) + create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c + +diff --git a/gcc/match.pd b/gcc/match.pd +index 91182448250..c3bb4fbc0a7 100644 +--- a/gcc/match.pd ++++ b/gcc/match.pd +@@ -8292,7 +8292,14 @@ and, + + (simplify + (vec_perm vec_same_elem_p@0 @0 @1) +- @0) ++ (if (types_match (type, TREE_TYPE (@0))) ++ @0 ++ (with ++ { ++ tree elem = uniform_vector_p (@0); ++ } ++ (if (elem) ++ { build_vector_from_val (type, elem); })))) + + /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */ + (simplify +diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +new file mode 100644 +index 00000000000..d3279f38362 +--- /dev/null ++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c +@@ -0,0 +1,12 @@ ++/* { dg-do compile } */ ++/* { dg-options "-O3 -fdump-tree-optimized" } */ ++ ++#include "arm_sve.h" ++ ++svuint32_t l() ++{ ++ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0}; ++ return svld1rq_u32(svptrue_b8(), lanes); ++} ++ ++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */ +-- +2.41.0 + diff --git a/cross/gcc-riscv64/APKBUILD b/cross/gcc-riscv64/APKBUILD index 50f404d0d..9296f6e1a 100644 --- a/cross/gcc-riscv64/APKBUILD +++ b/cross/gcc-riscv64/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-riscv64 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for riscv64" url="https://gcc.gnu.org" arch="x86_64" @@ -268,6 +268,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch 0033-libphobos-do-not-use-LFS64-symbols.patch 0034-libgo-fix-lfs64-use.patch + 0035-Fix-ICE-observed-in-PR110280.patch " # we build out-of-tree @@ -782,38 +783,39 @@ gdb() { sha512sums=" 284719308cad4546ebd85934fb9f12112e8f1a4c3e5beea0760da1f73509907c194e7c133e6e755b6148bd1c51a72c071ac0d16b05641d901af7105461686655 gcc-13-20230722.tar.xz -438eda29a1851c72e65422bb4cd129ecc016f06f9bd038288e39762c01b932f786ed4aad587c7b16baf948c342c10dc9beff125166b97e0b8e0d05789aec95ce 0001-posix_memalign.patch -4a7cd030e107b6e35fb883c80f21a547da14f540f989555ac2c9ba08958ace5b44dca194a96b460415c71f663e885954d73b04ade55f2f9d3cb116f50df8d8ca 0002-gcc-poison-system-directories.patch -99b194f53677c3a75c3c376160673703f2d759d795ebd9f6e66d5ee095a648eba35d8aef1990a6a1e805c1cc1720636d7c23ef6102b674d92996b1e5646a0b2c 0003-specs-turn-on-Wl-z-now-by-default.patch -39013ad0b255e9cfd168010eefc32ec4d015fce2c2b4e864341a6aa8bdb74e52a08f0ae83f29e27e9524d4da27f28369a6aa4d76f6aed6490dc2961b18f90e94 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -0ef08231bef5c77a38e8deaae4e00675de4312071425cf1db46ee54c3e00d2a5d1658a68302dd495c796d397e61e79efcf4e91fbd8fb2cd2e2fa539c2e884492 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -8202e22832141fb12601546cec42472fdb194892f839e9fed86b4ab597204b6e6575c0585c283301eeb598ac1f06d16ce500d9c0ea333444bd50ae2a210d2d76 0006-Enable-Wformat-and-Wformat-security-by-default.patch -1b239b94b570a0eff2249a9ec7ad150270c3210128f8f8a67e1554a044a039b2acc69768ebc57a15cec661f039c41fb7b620e7ec65320efbce40ceec1c9c6b90 0007-Enable-Wtrampolines-by-default.patch -eb3ce4df99bf4f22ca4bac2d4e24be4c235098fb67ae118cb8efe360f0441a39a9931076fa615fbc3b7d2b2a541d4ffb2cfc56097224fbd8b5f09bc01a1d7878 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -58a5ea76b4f7d662d3165dfeaad258087b0ec58b7ff87a62971c60817388ec6191d6dc841d63696d00fb68fe16b690790f3c0639e0edbd204033b4f8bbb4dafe 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -85d60bc6ef5f41854a5bc36847917dcee24bf6663fcd70b78a164a07fc08551f74fe37329b57cf187b95e23a6d04bce2ba620f21ac80c8df7d9cfcc8052089df 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -8ef0f45bc0639464537f39319f4954d9a9ab182e14a10c6e39455bebddd24dcdbe6ec3fc0316324a4f9d7dc1f95ec8babd7112c2ff05af54534e0fbe74ff6ebf 0011-libiberty-copy-PIC-objects-during-build-process.patch -d8467365c19339e52bcf27476b338fb412b6a7dd6eefd4fd92822e67c756a1f04a106f4e0c1c1909b4bee8f5f3b506a98614c1bf3478d7714415cca9eb7257e1 0012-libgcc_s.patch -cab0cb6c462f2f4abefde020e17199366c6c24ad2582fe7d793c552aa2bcbe3148c5f6cd6245bc9ff86017d949ef4e6f063c8a01ce7d247abfe685077c57e71c 0013-nopie.patch -b1277a4edc91208fecf5ad7015e8cf237d567b310063f26d14ff39c4aade683e6d1d54d817b7f4fef79db7dc456be9f09a5a8c0ceeff784f839521d0cf243807 0014-ada-fix-shared-linking.patch -9fa42ba8374b8e47cb3d96315d783c990cf35075354869f5657383908c4d5f143ee94d1f7f86f52140a974f5fc872b22bcaec1f732ebc249357a86ad9e781d4e 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -05e1e06a6e33958ec5c22b26919fe142153c9605173ad90c770a32d7d48dfb5df421553f3030b6d979f34acbd3614d0e32c86c3cb0b819f3fbaa054f2962ff20 0016-add-fortify-headers-paths.patch -784d488cf55fafa259d3aa874f4230453b4d3aeb94158d0c96caf26524b8b7f8cea12367a72fa4616389dfcb877c4a1c4fe9d1cb57a67c0329bbad61e91ee423 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -18c1092273005f4fcaec36830a2cbfbf5e2a2e4e82cf5f7f4f7f3141dbbe2731db2f47a9869f271b4ee337835962c7dfbf009165f2988a14ff40d6c6935986ce 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -4bbce70032f125002aa857b0561c80e15588847282c2ab2851c3c507a48d22613ef3affb288c33da461688890c7ce265c6175fb1580194669621653788172d1b 0019-aarch64-disable-multilib-support.patch -d4bf0a7add6d531871324c36004f7d92eea9ad7042d567e43377e5bdde7dce8d87c649c3c4bdf0144b82d2607b46fab4eb821cf9a82ee4eddb003601b331e395 0020-s390x-disable-multilib-support.patch -e0002f9aea22c923530591f97cfb29953cd924a78b3c7ae5d15ccaae46491c1f40b03a5dc5fc17a286299b82ef48248a9ecbf6eea9bbd2058189a697e9e2ffe8 0021-ppc64-le-disable-multilib-support.patch -28b6e2f1574611964f8e2effa57dcb6efff5d562ec5f923abfa9ddeaf4a09b0c6941d1406b02d113f950113b7239dcc8dd6b14d06ade3b2f4dbdb7f6d5560bed 0022-x86_64-disable-multilib-support.patch -6955ea39199f258340b69c8aa7021c65fc15179323f50be08952a302b77cec1a720b99ada60bf2a07594ba536a50b682d06290497fc9d4553c8e11e2f536a606 0023-riscv-disable-multilib-support.patch -46bfcfc122a29060d6ff1fb52b509251ba44357df67f81be1c274fdfe9b80099b1a5ad64f7d40d8412bb437e6147cb404448b8e067989018bdaf2df5cdfabaef 0024-always-build-libgcc_eh.a.patch -07b4028c8d8c7b8bc71c0fb4e31669fb2066aefdded556d0a65773fa93db097a55e9bfa9ac9ee10fbc82e4ba21aa84738e91c331b768cf7d067407934fc30064 0025-ada-libgnarl-compatibility-for-musl.patch -7201a76ac033bd4f7532600d7a975f2aa9f93692cec42e28323e6e8e27f7357e0cb1497c12503829a41ed025e9c7953bf4738ad0d980687a774088fabaf08cdf 0026-ada-musl-support-fixes.patch -f3974d1a693c0e382fa78ae94ebf768c6a1ca0ee631b478cf52a366537edae373cd0ab31369ef1ae0627d2834bcacfb94c9a4d01505c91eaac9d228a5933d0ae 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -8f77c3a908ec92966fb1697fd40cc936d4dca2624f6f14b199ba154f8c46be773548a571b41a1cf537134b011e3426deb443e4a13e49fb763c91c821ca1bae63 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -8cd10e3d10e3da0505cb4c09c4448335e5bbd18fe6e2c47cfa1257df3d83234983d71b1fdb0b4bfc76b24d477fd6e2d771b8eefacbb61e0ca1df105b980dbd4a 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -e026f1e20b78328b55b92a5fdf8f9d1d761176d2eea90556d7be8e2bae72d0dc52fd482d1eac8ab623e98653ca56d39b18fd2139ff99d420994b10c36f266ca6 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -80b41cf68a7e56bef50c05073cc79b9eafbd37535f6360deac16dfe5498ac041aaf91c3cc1bc6e323d574cd1da65aab22df32a03e39f606bff41a103063aafef 0031-druntime-link-against-libucontext-on-all-platforms.patch -b4917017c45d170c6878c7744c1ecababef4346903ee1f684d5a59d65255a5576d16d40137f7dbfe46144907c6389035966813e9024c9a4f499e963ed533947a 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch -1cc7a5ef067bf543f6c1fa14dedc6378750a43be1649b18605699dffdc1ebce8b88405d3f12dd57e3d821c7d457d861ee0a54138c037917d6365b0bf69526e85 0033-libphobos-do-not-use-LFS64-symbols.patch -77a1426e316b96b51edef9a35a64565d5f84b94d46a2fd7293ea406ede473b449613969f9e29cae44f8fbfbc767a27cef01b36392cf8ffb3f618c0df4e217c71 0034-libgo-fix-lfs64-use.patch +1ecffba1b07d60e1b4422302b032bbea918b674c8e12b30aa6965b544d700ce86b61e9f7b8d402c6caf59257f491a394dd0912f0948565d6eae9335ee54f3b35 0001-posix_memalign.patch +163f282455b6a4df33f011bcd8b0440566ba0ffaeeab30d8ac52d39948980a56881ca0eff60687129d59556389a58b9d64e7768750bd70b1fe0fedbc9fc30dc2 0002-gcc-poison-system-directories.patch +3f24bb6a50d3c45b71ea05590e32fe3e69b91377ab185352891d5035c76ed193117c6d0b314a4c364bcf136b9a9dd5c926d6c7c30ab436976c121ebfea8d3ddd 0003-specs-turn-on-Wl-z-now-by-default.patch +17a2993027d3ddf8595952ebcae425695ddc7b1cf73b384d2e55fddecb9cbf3f6482860a502ff69b14075e12badf27300fd3039f3a9005e851fd8d121d258c2b 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +444550e55491ff89fe8cbbb4b73d017c9c147cdce1ad5c0561fe7d6ab3834515a814c7676c408cfeec18e1aaace27b3c26a2ffe4a75042285df5124976c38672 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +5a5f57e4e45745bb4d9d63d7d410fe9dd56ce12dbd70c376dd45015909307faf02391e75368e4e7404591614a874cee41b20652cf27be234765d6db97ceb4e7e 0006-Enable-Wformat-and-Wformat-security-by-default.patch +3a2b22388398a93dae7787e794cd580b9c577326f286241e086120c1fcfdd9228c2e00407088ebb163fb1acc21722c199071343551c989a958dc3c845b15132d 0007-Enable-Wtrampolines-by-default.patch +7535de1c552544e3a51cbb00b5e08ac59edbf3bdcfce2a63b9f319fada3f3676f47e3a00c75d91bcefd14500555ea0844f18c130ff46b20f416ea76071e5af39 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +93d03afd83dee5f7129c36a7b81fa8fd323476507e2f53a4fbe40a026037e7dfafa23591145d7af5848d9a322d212497947a0f58ef828734552e6a6dabd00cfa 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +da9eaf2f0ddbec5ee14dc26053936587e6c76fbf16846db804a18cf4d318579426ebcc566aed02daf8e34f60c08b61f5d3959305886dca9bbcdc84db057258d9 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +35b9aafe7eee8138cb7aad7164a8f77c15ccdce26843cee78b5871ef91d76cad22ed0871b20f51c4b89b71afd9cfe4ba4227086e158c466558513708fe7d2a1a 0011-libiberty-copy-PIC-objects-during-build-process.patch +9d43f844fad0ac6e1c35a2b6f461f9278ae09e468f2c9ae8adc43accbe6934994aa10d3a433644d1393a4a76e3caed69e3191db7f3c0c24b4e7a0a0a0cbac3f1 0012-libgcc_s.patch +b2c4921c5eef33ee43a92ab5ec7f09d5d3adb49a2416595001e6376ffdf652ef9d0dc21778c3a86e45334290dbe467a4e891ed34a6522e0c72f746def22e8663 0013-nopie.patch +0b50ad15115192699efa9fda3d4fb1c2fa95da06d7880ba34615b40c19a8256e1fe364da39f5c70dc22fbccf21db2de5900932afef68948722eeb25e435262f8 0014-ada-fix-shared-linking.patch +00097c7106625ccf02149a757366f434c48f2abe824bb8b4bf067d29308889cb6039a5e5b2d3bd2683617693b47707d549252c56eea6bc3cdc2450a8d14f46a7 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +7f0bc42b93a389b614054e700b851abfbc53db391aa10cbdf6990d41396b293af78980bb39f1cf0967184d3fbf3d46ac7c7f096717b8f193ea34cbf7f37d7e91 0016-add-fortify-headers-paths.patch +0841acbce81250f8cb140a75ff62958dfcab3bed792822baf1fe4193dd62633648343f4b66df886c12338eed88a98e591b968131416460f9f0274046019bb8ef 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +589d538bdf692559e475e53c79869734dede0eb15228cab9ca901c9db81b0e78a0e532b20dfb05ca584ea19ff4bedd83e139ddca912a26b446c5eb6905180536 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +2213e07bab6f5d8d3d39c732f5385f46cc8f0c84e35054139fdaf13051252d7bf11f647f54aa8456b532166b008fff0656d8f41278e34ba868dd6fe427427a3a 0019-aarch64-disable-multilib-support.patch +a9567947471c3ba8a547a79c55e183974554bf823d9a97a165c966d7b3caad8789980e096e3b78452ece5de062bd9bb006af464bbf0c5a35b689eac3ee21e5c5 0020-s390x-disable-multilib-support.patch +f382eb5f7c2c60c5a23fac587c9629a3059d7be0898e97a1feaf9b9cbe1ef4693cc1177eb29333e8b7944fa17487478e73958be45d5782ccb9ef501961fb9a96 0021-ppc64-le-disable-multilib-support.patch +44ab86feb8e41e7c2b2e27accdf46194c9b80ee6a39543303dc04824f669d9fad182aabd40c9c7f6c265cf9bb71be830c257be115dc9d701d54eca3aa9ef174e 0022-x86_64-disable-multilib-support.patch +e0763083c31485e8ac0b3724376a28af01bb6f50e1a054780b61886e4e3de2a35d127e6e353eb8d8729964ada9b5751bf05bdd51df539667008216db38f228a3 0023-riscv-disable-multilib-support.patch +ab88a2f63e3545bbc36537aa9a86f2c6c35e41bbf702d6e13743a405cdac4f901eed5737189b780da96647fea9f5d863fdc76373f25a00064106dcb5514d6d87 0024-always-build-libgcc_eh.a.patch +8fdbe0c8bf4ca60f458a33e59027de03d15ac91933fe46d8ca62119346d20b9bc2447c0bf22bceb63d0cf8613ab61512d9197f4e6c2224af473b63ef9f254295 0025-ada-libgnarl-compatibility-for-musl.patch +30369bea84020c32d514196ba3adb3d09d2d0359af5550bd3f9719aa357e44b2f695623c1d2a99416e120dc86896c196c5dd4f638183dced4799604137385367 0026-ada-musl-support-fixes.patch +3f9a406d7d2ce34951215ffbcadb49a45e55ad5c24ab9097c0e5e92383e43b876872ccd2a7e7def2833ab204975ee5733f8bcf90934db9fa9c4f6f56c62081f6 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +720a4001f9a1fa4122e456077ecff8d3eb8af7c83d0a81f9da6a6cca05b23664206a82a349e34482c48bfe40e99aa5f21567613d0913f6a24f282bc84a994496 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +2044c23b23726965c0a6fd39f616cc464badd650947cb40495eeabd906a3af629878c1d28b403b8eb46b30a1a0ba39083023290d62f0c99ccf070063226e3f8f 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +58e8415612e1042329ad114471852c19f6bf15bf3bfd7cd81ceeafa75778bcc28410a01071a7c8cbf12b8f549acd85723215772813deedb8f266e28b9e01a353 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +d47b559075f40d526235f47b91da1d0cf6bfe6c5b7311bbfe08af9dd6e8f27e6c7cd82e3b2d529aab0536246fc56e2d42c089b22cacb0e7f09ca4a9d07556994 0031-druntime-link-against-libucontext-on-all-platforms.patch +b325035cb7122d79c6b42ca6d3fc9e02319ed2f7cddb0639dff25d2798d2ce63812cd623462cdf95e21c9ffbf2412193f8b9fc89a4c36fa5a6a041661ac7399d 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +c474f34e6f9a4239d486a65141a133dbe8ce91427d502a57a9fd6eb403478a2b5715ba74f24c1cc0761e16eec77ba2c1ca921fb7d7bc1e040fc3703fc9559e75 0033-libphobos-do-not-use-LFS64-symbols.patch +c4482ffc36e7894b2140800159f4cbc9a3e9011e43a69b69f4fa92d5a11e2ee645c7e21df4423dd1e0636e8890849a5719647bfbdf84f951d638f8f488cb718c 0034-libgo-fix-lfs64-use.patch +048d767f4477c92ee6835850d13063ede21c0be751d0945c94445d04054e134cdc617eeb0b1ac8c892a604d8644580fcfebeccaf537d6b7380558ac6378e445a 0035-Fix-ICE-observed-in-PR110280.patch "