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 ADBFE15A7D9 for ; Mon, 13 Mar 2023 22:28:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC472E07A5; Mon, 13 Mar 2023 22:28:56 +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 C400FE07A5 for ; Mon, 13 Mar 2023 22:28:56 +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 E7D5E341577 for ; Mon, 13 Mar 2023 22:28:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22D237F9 for ; Mon, 13 Mar 2023 22:28:54 +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: <1678744251.b37b9b3a61f788973ae156a1fcddd0d108879a7b.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 13.1.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 13.1.0/gentoo/01_all_default-fortify-source.patch 13.1.0/gentoo/README.history X-VCS-Directories: 13.1.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b37b9b3a61f788973ae156a1fcddd0d108879a7b X-VCS-Branch: master Date: Mon, 13 Mar 2023 22:28:54 +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: c86e020e-da80-43bc-8920-f0d310b8dd90 X-Archives-Hash: a40bfb68913e89b3a71d35c17da74457 commit: b37b9b3a61f788973ae156a1fcddd0d108879a7b Author: Sam James gentoo org> AuthorDate: Mon Mar 13 21:49:45 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 13 21:50:51 2023 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b37b9b3a 13.1.0: don't set _FORTIFY_SOURCE if -fsanitize=address (ASAN) is enabled This can cause either false positives in warnings from the compiler or false negatives where the sanitizer misses something. Bug: https://github.com/google/sanitizers/issues/247 Signed-off-by: Sam James gentoo.org> 13.1.0/gentoo/01_all_default-fortify-source.patch | 4 ++-- 13.1.0/gentoo/README.history | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/13.1.0/gentoo/01_all_default-fortify-source.patch b/13.1.0/gentoo/01_all_default-fortify-source.patch index 79d6639..4cdf5f6 100644 --- a/13.1.0/gentoo/01_all_default-fortify-source.patch +++ b/13.1.0/gentoo/01_all_default-fortify-source.patch @@ -16,8 +16,8 @@ initially Gentoo used too complicated macro. + #define GENTOO_FORTIFY_SOURCE_LEVEL 2 + #endif + -+ /* Fortify Source enabled by default for optimization levels > 0 */ -+ if (optimize) ++ /* F_S enabled by default for optimization levels > 0, except for ASAN: https://github.com/google/sanitizers/issues/247 */ ++ if (optimize && ! (flag_sanitize & SANITIZE_ADDRESS)) + builtin_define_with_int_value ("_FORTIFY_SOURCE", GENTOO_FORTIFY_SOURCE_LEVEL); +#endif + diff --git a/13.1.0/gentoo/README.history b/13.1.0/gentoo/README.history index f0ee005..efcdcf7 100644 --- a/13.1.0/gentoo/README.history +++ b/13.1.0/gentoo/README.history @@ -1,3 +1,6 @@ +9 13 Mar 2023 + U 01_all_default-fortify-source.patch + 8 12 Feb 2023 - 76_all_all_PR107461_cxx_equivalence_non_dependent_calls.patch