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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B6B881382C5 for ; Sat, 8 May 2021 09:39:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE79DE07FA; Sat, 8 May 2021 09:39:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1522E07FA for ; Sat, 8 May 2021 09:39:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 37DA333F698 for ; Sat, 8 May 2021 09:39:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB3574D2 for ; Sat, 8 May 2021 09:39:38 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1620466775.bdc0c0901a01727e26871572b12bfdd3bc48ae24.slyfox@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: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: bdc0c0901a01727e26871572b12bfdd3bc48ae24 X-VCS-Branch: master Date: Sat, 8 May 2021 09:39: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: 3a90f91c-c177-4768-8a9f-f6bb31d03317 X-Archives-Hash: a4b92e0ba3903d7e8fb96de5313cc4ed commit: bdc0c0901a01727e26871572b12bfdd3bc48ae24 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat May 8 09:34:47 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat May 8 09:39:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdc0c090 flag-o-matic.eclass: allow -fno-sanitize* options We already allow -fsanitize* options. Sometimes it's useful to enable -fsanitize= globally and disable ir in a few ebuilds. The change allows passing -fno-sanitize=all an similar to achieve that effect. Signed-off-by: Sergei Trofimovich gentoo.org> eclass/flag-o-matic.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index ed1b6e746ce..2e04e2acb06 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -49,7 +49,9 @@ setup-allowed-flags() { _setup-allowed-flags() { ALLOWED_FLAGS=( -pipe -O '-O[12sg]' -mcpu -march -mtune - '-fstack-protector*' '-fsanitize*' '-fstack-check*' -fno-stack-check + '-fstack-protector*' + '-fsanitize*' '-fno-sanitize*' + '-fstack-check*' -fno-stack-check -fbounds-check -fbounds-checking -fno-strict-overflow -fno-PIE -fno-pie -nopie -no-pie -fno-unit-at-a-time