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 (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A76FF158086 for ; Sat, 8 Jan 2022 03:49:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF9382BC008; Sat, 8 Jan 2022 03:49:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7958E077A for ; Sat, 8 Jan 2022 03:49:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 B8E32342E25 for ; Sat, 8 Jan 2022 03:49:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF1161BF for ; Sat, 8 Jan 2022 03:49:21 +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: <1641611210.7e2dec9de3d94ad18c2136f9ef8dbd48c1a5bdf4.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 11.3.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 11.3.0/gentoo/76_all_all_PR103910_12_ICE-on-PCH.patch 11.3.0/gentoo/README.history X-VCS-Directories: 11.3.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7e2dec9de3d94ad18c2136f9ef8dbd48c1a5bdf4 X-VCS-Branch: master Date: Sat, 8 Jan 2022 03:49:21 +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: a4868bda-ae49-4a83-8604-3b72ffae5a6f X-Archives-Hash: b14df0d33fa665038899d7b0ae38fa86 commit: 7e2dec9de3d94ad18c2136f9ef8dbd48c1a5bdf4 Author: Sam James gentoo org> AuthorDate: Sat Jan 8 03:06:25 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 8 03:06:50 2022 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=7e2dec9d 11.3.0: add PR103910 backport (OpenJDK ICE with PCH) Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 Bug: https://bugs.gentoo.org/822690 Signed-off-by: Sam James gentoo.org> .../gentoo/76_all_all_PR103910_12_ICE-on-PCH.patch | 35 ++++++++++++++++++++++ 11.3.0/gentoo/README.history | 3 ++ 2 files changed, 38 insertions(+) diff --git a/11.3.0/gentoo/76_all_all_PR103910_12_ICE-on-PCH.patch b/11.3.0/gentoo/76_all_all_PR103910_12_ICE-on-PCH.patch new file mode 100644 index 0000000..358b9b3 --- /dev/null +++ b/11.3.0/gentoo/76_all_all_PR103910_12_ICE-on-PCH.patch @@ -0,0 +1,35 @@ +https://bugs.gentoo.org/822690 +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 + +From d243f4009d8071b734df16cd70f4c5d09a373769 Mon Sep 17 00:00:00 2001 +From: Andrew Pinski +Date: Wed, 5 Jan 2022 22:00:07 +0000 +Subject: [PATCH] Fix target/103910: missing GTY on x86_mfence causing PCH + usage to ICE + +With -O3 -march=opteron, a mfence builtin is added after the loop +to say the nontemporal stores are no longer needed. This all good +without precompiled headers as the function decl that is referneced +by x86_mfence is referenced in another variable but with precompiled +headers, x86_mfence is all messed up and the decl was GC'ed away. +This fixes the problem by marking x86_mfence as GTY to save/restore +during precompiled headers just like most other variables in +the header file. + +Committed as obvious after a bootstrap/test on x86_64-linux-gnu. + +gcc/ChangeLog: + + PR target/103910 + * config/i386/i386.h (x86_mfence): Mark with GTY. +--- a/gcc/config/i386/i386.h ++++ b/gcc/config/i386/i386.h +@@ -486,7 +486,7 @@ extern unsigned char ix86_prefetch_sse; + + /* Fence to use after loop using storent. */ + +-extern tree x86_mfence; ++extern GTY(()) tree x86_mfence; + #define FENCE_FOLLOWING_MOVNT x86_mfence + + /* Once GDB has been enhanced to deal with functions without frame diff --git a/11.3.0/gentoo/README.history b/11.3.0/gentoo/README.history index bd234ed..1faa3d6 100644 --- a/11.3.0/gentoo/README.history +++ b/11.3.0/gentoo/README.history @@ -1,3 +1,6 @@ +3 8 January 2022 + + 76_all_all_PR103910_12_ICE-on-PCH.patch + 2 7 December 2021 + 01_all_default-fortify-source.patch + 02_all_default-warn-format-security.patch