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 D9B18158083 for ; Tue, 17 Sep 2024 12:13:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AB0DE29A8; Tue, 17 Sep 2024 12:13:08 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 29470E29A8 for ; Tue, 17 Sep 2024 12:13:08 +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 2FB58342FB1 for ; Tue, 17 Sep 2024 12:13:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 954B01EF3 for ; Tue, 17 Sep 2024 12:13:05 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1726575165.8f8d82a41eb0f0b0cf04da9ac15b42454d5079ed.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang-common/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/clang-common/clang-common-20.0.0.9999.ebuild X-VCS-Directories: sys-devel/clang-common/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8f8d82a41eb0f0b0cf04da9ac15b42454d5079ed X-VCS-Branch: master Date: Tue, 17 Sep 2024 12:13:05 +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: afc2ecb9-ae28-4173-82d4-d65ad441592a X-Archives-Hash: b76fb3312174a1302066d8dc7236d0b3 commit: 8f8d82a41eb0f0b0cf04da9ac15b42454d5079ed Author: Michał Górny gentoo org> AuthorDate: Mon Sep 16 12:37:39 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Sep 17 12:12:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f8d82a4 sys-devel/clang-common: Cover more sanitizers for FORTIFY_SOURCE Signed-off-by: Michał Górny gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/38624 Signed-off-by: Michał Górny gentoo.org> .../clang-common/clang-common-20.0.0.9999.ebuild | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sys-devel/clang-common/clang-common-20.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-20.0.0.9999.ebuild index 090a45690818..56db34cffe17 100644 --- a/sys-devel/clang-common/clang-common-20.0.0.9999.ebuild +++ b/sys-devel/clang-common/clang-common-20.0.0.9999.ebuild @@ -227,19 +227,20 @@ src_install() { # define __GENTOO_HAS_FEATURE(x) 0 # endif # - # if defined(__STDC_HOSTED__) && __STDC_HOSTED__ == 1 - # define __GENTOO_NOT_FREESTANDING 1 + # if !defined(__OPTIMIZE__) || __OPTIMIZE__ == 0 + # elif !defined(__STDC_HOSTED__) || __STDC_HOSTED__ != 1 + # elif defined(__SANITIZE_ADDRESS__) + # elif __GENTOO_HAS_FEATURE(address_sanitizer) + # elif __GENTOO_HAS_FEATURE(hwaddress_sanitizer) + # elif __GENTOO_HAS_FEATURE(memory_sanitizer) + # elif __GENTOO_HAS_FEATURE(numerical_stability_sanitizer) + # elif __GENTOO_HAS_FEATURE(realtime_sanitizer) + # elif __GENTOO_HAS_FEATURE(thread_sanitizer) # else - # define __GENTOO_NOT_FREESTANDING 0 + # define _FORTIFY_SOURCE ${fortify_level} # endif # - # if defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 && __GENTOO_NOT_FREESTANDING > 0 - # if !defined(__SANITIZE_ADDRESS__) && !__GENTOO_HAS_FEATURE(address_sanitizer) && !__GENTOO_HAS_FEATURE(memory_sanitizer) - # define _FORTIFY_SOURCE ${fortify_level} - # endif - # endif # undef __GENTOO_HAS_FEATURE - # undef __GENTOO_NOT_FREESTANDING #endif EOF