From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 02BB515827B for ; Sun, 17 Aug 2025 21:01:32 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E097E340A98 for ; Sun, 17 Aug 2025 21:01:31 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E076D110280; Sun, 17 Aug 2025 21:01:30 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id D48FA110280 for ; Sun, 17 Aug 2025 21:01:30 +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 8F5EB335D9E for ; Sun, 17 Aug 2025 21:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 081A02083 for ; Sun, 17 Aug 2025 21:01:29 +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: <1755464478.3f589e338f62031dbb5efb7f966c0025a154654c.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 16.0.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 16.0.0/gentoo/86_all_PR121572_x86-Place-the-TLS-call-before-all-FLAGS_REG-setting-.patch X-VCS-Directories: 16.0.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3f589e338f62031dbb5efb7f966c0025a154654c X-VCS-Branch: master Date: Sun, 17 Aug 2025 21:01:29 +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: 5a1f7ecd-6a7d-4b84-9e87-1bc2e1b9f13a X-Archives-Hash: 63ae6fa2dcc18d0332f5e2dd018c6b3e commit: 3f589e338f62031dbb5efb7f966c0025a154654c Author: Sam James gentoo org> AuthorDate: Sun Aug 17 21:01:18 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Aug 17 21:01:18 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3f589e33 16.0.0: tweak patch header Signed-off-by: Sam James gentoo.org> ...he-TLS-call-before-all-FLAGS_REG-setting-.patch | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/16.0.0/gentoo/86_all_PR121572_x86-Place-the-TLS-call-before-all-FLAGS_REG-setting-.patch b/16.0.0/gentoo/86_all_PR121572_x86-Place-the-TLS-call-before-all-FLAGS_REG-setting-.patch index 35401c6..497ee1c 100644 --- a/16.0.0/gentoo/86_all_PR121572_x86-Place-the-TLS-call-before-all-FLAGS_REG-setting-.patch +++ b/16.0.0/gentoo/86_all_PR121572_x86-Place-the-TLS-call-before-all-FLAGS_REG-setting-.patch @@ -1,9 +1,8 @@ -https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121572#c9 - -From ef27987069ba929157eb43f3b734534dd636f7f4 Mon Sep 17 00:00:00 2001 +From 81d358d3e24e18744e1c000672c5317d606c91ee Mon Sep 17 00:00:00 2001 +Message-ID: <81d358d3e24e18744e1c000672c5317d606c91ee.1755464442.git.sam@gentoo.org> From: "H.J. Lu" -Date: Sat, 16 Aug 2025 14:04:33 -0700 -Subject: [PATCH v2] x86: Place the TLS call before all register setting BBs +Date: Sun, 17 Aug 2025 13:50:05 -0700 +Subject: [PATCH] x86: Place the TLS call before all register setting BBs We can't place a TLS call before a conditional jump in a basic block like @@ -70,7 +69,7 @@ Signed-off-by: H.J. Lu create mode 100644 gcc/testsuite/gcc.target/i386/pr121572-2b.c diff --git a/gcc/config/i386/i386-features.cc b/gcc/config/i386/i386-features.cc -index f0bdc5c1880..903f2b0b478 100644 +index f0bdc5c1880b..903f2b0b4789 100644 --- a/gcc/config/i386/i386-features.cc +++ b/gcc/config/i386/i386-features.cc @@ -3684,10 +3684,12 @@ ix86_broadcast_inner (rtx op, machine_mode mode, @@ -317,7 +316,7 @@ index f0bdc5c1880..903f2b0b478 100644 case X86_CSE_CONSTM1_VECTOR: diff --git a/gcc/testsuite/gcc.target/i386/pr121572-1a.c b/gcc/testsuite/gcc.target/i386/pr121572-1a.c new file mode 100644 -index 00000000000..270d8ff5cb6 +index 000000000000..270d8ff5cb6d --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr121572-1a.c @@ -0,0 +1,41 @@ @@ -364,7 +363,7 @@ index 00000000000..270d8ff5cb6 +} diff --git a/gcc/testsuite/gcc.target/i386/pr121572-1b.c b/gcc/testsuite/gcc.target/i386/pr121572-1b.c new file mode 100644 -index 00000000000..8a6089109f5 +index 000000000000..8a6089109f50 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr121572-1b.c @@ -0,0 +1,18 @@ @@ -388,7 +387,7 @@ index 00000000000..8a6089109f5 +#include "pr121572-1a.c" diff --git a/gcc/testsuite/gcc.target/i386/pr121572-2a.c b/gcc/testsuite/gcc.target/i386/pr121572-2a.c new file mode 100644 -index 00000000000..38b254657d3 +index 000000000000..38b254657d35 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr121572-2a.c @@ -0,0 +1,39 @@ @@ -433,7 +432,7 @@ index 00000000000..38b254657d3 +/* { dg-final { scan-assembler-times "call\[ \t\]__tls_get_addr@PLT" 1 { target { ! ia32 } } } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr121572-2b.c b/gcc/testsuite/gcc.target/i386/pr121572-2b.c new file mode 100644 -index 00000000000..33d70024324 +index 000000000000..33d700243249 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr121572-2b.c @@ -0,0 +1,6 @@ @@ -443,5 +442,8 @@ index 00000000000..33d70024324 +#include "pr121572-2a.c" + +/* { dg-final { scan-assembler-times "call\[ \t\]\\*__gmpfr_emax@TLSCALL\\(%(?:r|e)ax\\)" 1 { target { ! ia32 } } } } */ + +base-commit: 6f63044a7ae63a276a4f6d3108849e093c690bc6 -- 2.50.1 +