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 DA26315815E for ; Sat, 3 Feb 2024 14:07:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2BCE5E2AD2; Sat, 3 Feb 2024 14:07:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 12206E2AD2 for ; Sat, 3 Feb 2024 14:07:18 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 595733431C2 for ; Sat, 3 Feb 2024 14:07:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D27DCAE3 for ; Sat, 3 Feb 2024 14:07:15 +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: <1706969200.2add8e9e5a9a837954f6cc4dbbbe72f448b636a8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2add8e9e5a9a837954f6cc4dbbbe72f448b636a8 X-VCS-Branch: master Date: Sat, 3 Feb 2024 14:07:15 +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: ed131ad4-22f5-4a65-8c49-7e740ded7174 X-Archives-Hash: 9d96ad86ff8c93e1ab61c9e0aebe10b7 commit: 2add8e9e5a9a837954f6cc4dbbbe72f448b636a8 Author: Sam James gentoo org> AuthorDate: Sat Feb 3 14:04:08 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Feb 3 14:06:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2add8e9e toolchain.eclass: don't take shortcut for non-GCC bootstrap compiler We're fragile for stage0 so if we're not building using GCC, use -O0. The use of regular CFLAGS/CXXFLAGS there should be seen as a bonus as it has some caveats. Best to play it safe to avoid confusing hard-to-diagnose differences later on. Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 1679a3d3a366..4cf76229cf88 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1712,7 +1712,7 @@ gcc_do_make() { # The last known issues are with < GCC 4.9 or so, but it's easier # to keep this bound somewhat fresh just to avoid problems. Ultimately, # using not-O0 is just a build-time speed improvement anyway. - if tc-is-gcc && ver_test $(gcc-fullversion) -lt 10 ; then + if ! tc-is-gcc || ver_test $(gcc-fullversion) -lt 10 ; then STAGE1_CFLAGS="-O0" fi