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 71851158004 for ; Sat, 21 Oct 2023 16:59:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF2362BC013; Sat, 21 Oct 2023 16:59:40 +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 A47892BC013 for ; Sat, 21 Oct 2023 16:59:40 +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 DAD0A335C7E for ; Sat, 21 Oct 2023 16:59:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3244CE88 for ; Sat, 21 Oct 2023 16:59:38 +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: <1697907558.8dc7a7e2b4735a778b02fd89cb056f22381458e5.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/flag-o-matic.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8dc7a7e2b4735a778b02fd89cb056f22381458e5 X-VCS-Branch: master Date: Sat, 21 Oct 2023 16:59:38 +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: fe5360f7-562c-4dfc-b023-d659e8219b54 X-Archives-Hash: 93a56ed04376baa7df7a6d1e5cc386c5 commit: 8dc7a7e2b4735a778b02fd89cb056f22381458e5 Author: Sam James gentoo org> AuthorDate: Sat Oct 21 16:58:46 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Oct 21 16:59:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc7a7e2 flag-o-matic.eclass: allow hardened compare/control flow flags Signed-off-by: Sam James gentoo.org> eclass/flag-o-matic.eclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index c0b042d5348d..0c56ac5b6bf4 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -56,6 +56,10 @@ _setup-allowed-flags() { '-fcf-protection=*' -fbounds-check -fbounds-checking -fno-PIE -fno-pie -nopie -no-pie + -fharden-compares -fharden-conditional-branches + -fharden-control-flow-redundancy -fhardcfr-skip-leaf + -fhardcfr-check-exceptions -fhardcfr-check-returning-calls + '-fhardcfr-check-noreturn-calls=*' # Spectre mitigations, bug #646076 '-mindirect-branch=*' -mindirect-branch-register