From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2AAC315813A for ; Wed, 08 Jan 2025 21:51:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F6C1E077D; Wed, 08 Jan 2025 21:51:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51F2EE077D for ; Wed, 08 Jan 2025 21:51:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58ACC342F65 for ; Wed, 08 Jan 2025 21:51:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B49701870 for ; Wed, 08 Jan 2025 21:51:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1736373092.93975113f3b353a27dea263c60ee62b27894be9b.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 15.0.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 15.0.0/gentoo/79_all_PR32491-fix-binutils-arm-check.patch 15.0.0/gentoo/README.history X-VCS-Directories: 15.0.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 93975113f3b353a27dea263c60ee62b27894be9b X-VCS-Branch: master Date: Wed, 08 Jan 2025 21:51:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bec66d63-2905-4643-b2a3-b25f406d988c X-Archives-Hash: d22c9ee72fc40e961a043a8cf1b04466 commit: 93975113f3b353a27dea263c60ee62b27894be9b Author: Sam James gentoo org> AuthorDate: Wed Jan 8 21:51:32 2025 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jan 8 21:51:32 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=93975113 15.0.0: drop upstream 79_all_PR32491-fix-binutils-arm-check.patch Merged upstream. Signed-off-by: Sam James gentoo.org> .../79_all_PR32491-fix-binutils-arm-check.patch | 130 --------------------- 15.0.0/gentoo/README.history | 1 + 2 files changed, 1 insertion(+), 130 deletions(-) diff --git a/15.0.0/gentoo/79_all_PR32491-fix-binutils-arm-check.patch b/15.0.0/gentoo/79_all_PR32491-fix-binutils-arm-check.patch deleted file mode 100644 index 290fb53..0000000 --- a/15.0.0/gentoo/79_all_PR32491-fix-binutils-arm-check.patch +++ /dev/null @@ -1,130 +0,0 @@ -https://inbox.sourceware.org/gcc-patches/20241227214756.1059146-1-thiago.bauermann@linaro.org/ - -From 4f033ebeb8efb96f4f164e33d2536d1d18316052 Mon Sep 17 00:00:00 2001 -Message-ID: <4f033ebeb8efb96f4f164e33d2536d1d18316052.1735466357.git.sam@gentoo.org> -From: Thiago Jung Bauermann -Date: Fri, 27 Dec 2024 18:47:56 -0300 -Subject: [PATCH] gcc/configure: Fix check for assembler section merging - support on Arm - -In 32-bit Arm assembly, the @ character is the start of a comment so -the section type needs to use the % character instead. - -configure.ac attempts to account for this difference by doing a second -try when checking the assembler for section merging support. -Unfortunately there is a bug: because the gcc_GAS_CHECK_FEATURE macro -has a call to AC_CACHE_CHECK, it will actually skip the second try -because the gcc_cv_as_shf_merge variable has already been set: - - checking assembler for section merging support... no - checking assembler for section merging support... (cached) no - -Fix by using a separate variable for the second try, as is done in the -check for COMDAT group support. - -This problem was noticed because the recent binutils commit -d5cbf916be4a ("gas/ELF: also reject merge entity size being zero") caused -gas to be stricter about mergeable sections without an entity size: - -configure:27013: checking assembler for section merging support -configure:27022: /path/to/as --fatal-warnings -o conftest.o conftest.s >&5 -conftest.s: Assembler messages: -conftest.s:1: Warning: invalid merge / string entity size -conftest.s: Error: 1 warning, treating warnings as errors -configure:27025: $? = 1 -configure: failed program was -.section .rodata.str, "aMS", @progbits, 1 -configure:27036: result: no - -In previous versions of gas the conftest.s program above was accepted -and configure detected support for section merging. - -See also: -https://linaro.atlassian.net/browse/GNU-1427 -https://sourceware.org/bugzilla/show_bug.cgi?id=32491 - -Tested on armv8l-linux-gnueabihf. - -gcc/ChangeLog: - * configure.ac: Fix check for HAVE_GAS_SHF_MERGE on Arm targets. - * configure: Regenerate. ---- - gcc/configure | 17 +++++++++-------- - gcc/configure.ac | 6 ++++-- - 2 files changed, 13 insertions(+), 10 deletions(-) - -diff --git a/gcc/configure b/gcc/configure -index a8b531d8fae0..0bc33f0ede18 100755 ---- a/gcc/configure -+++ b/gcc/configure -@@ -27038,12 +27038,12 @@ $as_echo "$gcc_cv_as_shf_merge" >&6; } - - - if test $gcc_cv_as_shf_merge = no; then -- { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 --$as_echo_n "checking assembler for section merging support... " >&6; } --if ${gcc_cv_as_shf_merge+:} false; then : -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support (%progbits)" >&5 -+$as_echo_n "checking assembler for section merging support (%progbits)... " >&6; } -+if ${gcc_cv_as_shf_merge_percent+:} false; then : - $as_echo_n "(cached) " >&6 - else -- gcc_cv_as_shf_merge=no -+ gcc_cv_as_shf_merge_percent=no - if test x$gcc_cv_as != x; then - $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s - if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' -@@ -27053,7 +27053,7 @@ else - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } - then -- gcc_cv_as_shf_merge=yes -+ gcc_cv_as_shf_merge_percent=yes - else - echo "configure: failed program was" >&5 - cat conftest.s >&5 -@@ -27061,14 +27061,15 @@ else - rm -f conftest.o conftest.s - fi - fi --{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 --$as_echo "$gcc_cv_as_shf_merge" >&6; } -+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge_percent" >&5 -+$as_echo "$gcc_cv_as_shf_merge_percent" >&6; } - - - fi - - cat >>confdefs.h <<_ACEOF --#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` -+#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes \ -+ || test $gcc_cv_as_shf_merge_percent = yes; then echo 1; else echo 0; fi` - _ACEOF - - -diff --git a/gcc/configure.ac b/gcc/configure.ac -index 77fab885a428..1407c86e355b 100644 ---- a/gcc/configure.ac -+++ b/gcc/configure.ac -@@ -3612,12 +3612,14 @@ gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge, - [--fatal-warnings], - [.section .rodata.str, "aMS", @progbits, 1]) - if test $gcc_cv_as_shf_merge = no; then -- gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge, -+ gcc_GAS_CHECK_FEATURE(section merging support (%progbits), -+ gcc_cv_as_shf_merge_percent, - [--fatal-warnings], - [.section .rodata.str, "aMS", %progbits, 1]) - fi - AC_DEFINE_UNQUOTED(HAVE_GAS_SHF_MERGE, -- [`if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`], -+ [`if test $gcc_cv_as_shf_merge = yes \ -+ || test $gcc_cv_as_shf_merge_percent = yes; then echo 1; else echo 0; fi`], - [Define 0/1 if your assembler supports marking sections with SHF_MERGE flag.]) - - gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as)], - -base-commit: 4da027d87eabd9a6cb0f5c1ed7ee10540501c7a3 --- -2.47.1 - diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history index 2d01229..7b6d0a6 100644 --- a/15.0.0/gentoo/README.history +++ b/15.0.0/gentoo/README.history @@ -1,6 +1,7 @@ 37 ???? - 78_all_PR118032-Revert-gimple-Add-limit-after-which-slower-switchlow.patch + - 79_all_PR32491-fix-binutils-arm-check.patch + 80_all_PR81358-Enable-automatic-linking-of-libatomic.patch + 81_all_PR118199-c-Clear-TARGET_EXPR_ELIDING_P-when-forced-to-use-a-c.patch