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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5657D158041 for ; Sat, 16 Mar 2024 04:44:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44D7AE29E4; Sat, 16 Mar 2024 04:44:49 +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 CD215E29E3 for ; Sat, 16 Mar 2024 04:44:48 +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 800A033BDC5 for ; Sat, 16 Mar 2024 04:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BEF96118C for ; Sat, 16 Mar 2024 04:44:45 +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: <1710564233.486f9fc090b28ad5cc09b39c734ebbfadb81be08.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/go-env.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 486f9fc090b28ad5cc09b39c734ebbfadb81be08 X-VCS-Branch: master Date: Sat, 16 Mar 2024 04:44:45 +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: 51deadca-bc58-45e1-a04c-450c4f0d058d X-Archives-Hash: cab8193d5f12887947b6c06cf6e638bb commit: 486f9fc090b28ad5cc09b39c734ebbfadb81be08 Author: Sam James gentoo org> AuthorDate: Sat Mar 16 04:43:53 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 16 04:43:53 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=486f9fc0 go-env.eclass: filter LTO temporarily for gcc 14.0.1 14.0.1 won't ever be a released version, just do this as a hack because gcc has a checking ICE w/ go LTO atm and this prohibits more testing. Bug: https://bugs.gentoo.org/912152 Bug: https://gcc.gnu.org/PR113204 Signed-off-by: Sam James gentoo.org> eclass/go-env.eclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/go-env.eclass b/eclass/go-env.eclass index 08cb6380e48a..baba0d3ee8b3 100644 --- a/eclass/go-env.eclass +++ b/eclass/go-env.eclass @@ -1,4 +1,4 @@ -# Copyright 2023 Gentoo Authors +# Copyright 2023-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: go-env.eclass @@ -14,7 +14,7 @@ if [[ -z ${_GO_ENV_ECLASS} ]]; then _GO_ENV_ECLASS=1 -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs # @FUNCTION: go-env_set_compile_environment # @DESCRIPTION: @@ -33,6 +33,9 @@ go-env_set_compile_environment() { use arm && export GOARM=$(go-env_goarm) use x86 && export GO386=$(go-env_go386) + # XXX: Hack for checking ICE (bug #912152, gcc PR113204) + [[ $(gcc-fullversion) == 14.0.1 ]] && filter-lto + export CGO_CFLAGS="${CGO_CFLAGS:-$CFLAGS}" export CGO_CPPFLAGS="${CGO_CPPFLAGS:-$CPPFLAGS}" export CGO_CXXFLAGS="${CGO_CXXFLAGS:-$CXXFLAGS}"