Message ID | SA1PR11MB7130B1C85490BA6512F26175B2CA2@SA1PR11MB7130.namprd11.prod.outlook.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=live.com header.i=@live.com header.a=rsa-sha256 header.s=selector1 header.b=Zz0ivTLz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W5ZxL2njCz20X6 for <incoming@patchwork.ozlabs.org>; Sat, 22 Jun 2024 10:34:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A1FED382FAEB for <incoming@patchwork.ozlabs.org>; Sat, 22 Jun 2024 00:34:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11olkn20809.outbound.protection.outlook.com [IPv6:2a01:111:f403:2c14::809]) by sourceware.org (Postfix) with ESMTPS id 01276385B50D for <gcc-patches@gcc.gnu.org>; Sat, 22 Jun 2024 00:34:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01276385B50D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=live.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=live.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 01276385B50D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2c14::809 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1719016454; cv=pass; b=X3LPQEkW5MUC/YEEU1LtVSiCnyxiHGAVMSds5PExG7NIJvA0zxhsWk+hIkaiWKioj1asphXXw5NUNZaYh4r8DKnl5UAZOoOjc2/C8+vFoRVmGXxlWNohxiEGsWIKIukK58YbXeB9VhZjuY8dpSSpaHBVSEVpk5F3KW0eG9g+GE4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1719016454; c=relaxed/simple; bh=jV32gnQVlbrzYm00UQyrKH/5ht6LfimeWVhRfbppBH4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Luvd4q8EMMy1zPC2qMBswzQd4KBPnKLgcRsZSVTQPs5NBD1ulvYGvr8uS4TZiX3XxSyu88HdqvQzuP96nYTTIYjjsDiNoI08j7CvYp94iOF9y1wjvLDhYl072Sx+aMfpVXz3OK9zneQRcP+Oia70K8HLpa0fLB8iJU9cbfzkN+0= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A0xddwgyBErbKWsRXvToGkW4YQGojGFO8lfgoeaa6p2D+ceRYBg3l4yr58m0D38rB1ca7hvh46MTKYSJBP4gpPKxvcxL2q7UDPjFEGhroeEyBOH3xq/5cAFw1BLwe7a6HZN0IFhJ9K+TWqu5fnPm+0DoU6bXBDorT7C2+kfPMV2EwB2mgJe15CeYhQPeZlgWPkWMJ7zyP++FnhU00vzeWdsjA3NoSXOqtsEf5LeHzQqDvqKYbL9qP+MDaS13GwOLnt5jEmJo8ApUH1qFp/4sN8hvasAQ8xVT2onUMZQMUgc11PkWLnOszbRs+VbxmUagUXV0Pbuo+Aytpt558BO6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Vd/PqJpzYIQz46ngwSLIlt64egmXqI9Nlz2qemIA/JA=; b=C9JjIBtreVWOwhOrSf9MM2VI12dWC/4jDYpAEAmNfQd0udtpjGRMAmHNILX0gkZ6sxekZe8Gi3LFonvP9hGlB3AwvbeH7F5CBytGwUe3JVhUB3IqDCc3Q5mYFvZnLx0vyKIi4c96jZwAMOZLvixkYyLmi5wqc8IPnRlq8GxJIhxg0bvlnzCTDbMrRd3EOZ1p943aNko3KmPnuosa/KUmQDuN41oRi3UkY/0AELOv+CgnlqXgse2P+pHgQnkyzruKnj1ircgqeiFxIp/Cy1udprFlGiR79JNCxlfRYQT8Fv5wARYvS0JZNUVJ5PBdaDVVd/f/yu/M8CzT/3+51b5MaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vd/PqJpzYIQz46ngwSLIlt64egmXqI9Nlz2qemIA/JA=; b=Zz0ivTLz/MofWHb1S84xC/cOC/BurljAjs8oz6IG1jPgxFpyNWWm2F596ay5xuu8pYaBVF5+menuDe5u7BCL3OscgxbW6Bn+AZ4wNk7FCZOK/iMsRscZ5xDvc8LaDhlmCmT1wkVpVQFQqo1H7eXj6Fsmvj/6bFkZvUQTUu7OKprOIgrU7DQJaowrCfgNrGeaSiZFBd+Cs45YPRawi0WpfqwuADEGi7WRVhH1kXfe98e80vZ4S3ZW+o28nwX9FCdavSkVIfqgEquK3ufFiJei2bkBA9UGoUMirHR2V3Ujgytj0aZasfNpNYWctXdscLKdjlPDdRhJTORjvNgtgDnJsg== Received: from SA1PR11MB7130.namprd11.prod.outlook.com (2603:10b6:806:29f::10) by LV3PR11MB8676.namprd11.prod.outlook.com (2603:10b6:408:20f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Sat, 22 Jun 2024 00:34:08 +0000 Received: from SA1PR11MB7130.namprd11.prod.outlook.com ([fe80::928e:8882:8562:2dd5]) by SA1PR11MB7130.namprd11.prod.outlook.com ([fe80::928e:8882:8562:2dd5%5]) with mapi id 15.20.7698.017; Sat, 22 Jun 2024 00:34:07 +0000 From: trcrsired <euloanty@live.com> To: gcc-patches@gcc.gnu.org Cc: trcrsired <uwgghhbcad@gmail.com> Subject: [PATCH] [PR115585] Fix --disable-libstdcxx-verbose abi break Date: Fri, 21 Jun 2024 20:33:48 -0400 Message-ID: <SA1PR11MB7130B1C85490BA6512F26175B2CA2@SA1PR11MB7130.namprd11.prod.outlook.com> X-Mailer: git-send-email 2.45.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [+2wy2lmm+bOJWV5cBnehNEIavNOtuAJ5] X-ClientProxiedBy: BL0PR03CA0032.namprd03.prod.outlook.com (2603:10b6:208:2d::45) To SA1PR11MB7130.namprd11.prod.outlook.com (2603:10b6:806:29f::10) X-Microsoft-Original-Message-ID: <20240622003355.238828-1-euloanty@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR11MB7130:EE_|LV3PR11MB8676:EE_ X-MS-Office365-Filtering-Correlation-Id: 56360b42-10bb-46b0-043d-08dc925306f3 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199025|4302099010|3412199022|440099025|1602099009; X-Microsoft-Antispam-Message-Info: vibC4DjB88I7AuSnZ5kgVLyDIqUH7Se3MRNg8O3BwRADSF/zWbe3YdL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J2fUgv/33rKEWxp2gMluQbul27R9RFkY+JjtaIT+hJOiaWJpDzwY5LQzybjGmhjDVZ6LTaYmWUSViwNjQfY936Njuw6el/SYbKI5q2hQHQb63xzgQliV/1TiDmNkRQKMVeyzECOtDhCTXOPl6fNm4mGQoEAb53RhbZRlUSNw9jP95kFMoortlEUWSkUEB7FGWBCjGXZHqIX2pwqx01DX7VgFy410OUaP/GKy6sbEkJRi+DMlrC+fdLyGKYUWLilfoLQrQfpk4zf7nE7zaB3JwAoziEDxRtMJ9kdFlqkIFMZhmYoKR9aB7GjdfR3rE4lt75IR9gcyqXwgxHcZFZsNGxBmZVe7cyoI3Z0yKTg9ctuRmUKgM+YEeaDV0gW7CC8VRuigZQmzJDEf+z5K87rUhcu6b3Vif9BiNjKLgSKJ94Q5+/fD3pnxoZpWQ5THh+Z1OcU6LIMuNQaGzkJcomjNWzz7pUpHkk4xGgQwX3AoFtMd2QePp85EAVcOzuKWBxh9zQS640Mp61jJ44HzmPVPVk7QP5WY6sGV13c/dGzr78RQ0FbTHbetaKe3UYnfI316ETj7U+rTI+J8CtthrmtjGbYh7D9hPAvNqnOXvSuvPQRdtRNcv0u1V8ZEfh3S7CZ8pEsjbwoVEuXwVlkTstNqTzLTcNHBrA39tg02IacKxoigE5V1GkhX3sz+YcrmkVPDpNw1rvMD/Zfi5vnqamv6wByuXfvSAwkcQGxsw+lfzKF56biiSDWahS4siRiKUBjmdUu3ea/AB+g3yzoIyO1LIv8KUigCkaqoGWU5ygqVQMmxGWDwLnkt1JcqrHu0gJgzcdtUmbMm9+CiT8U8IdiUDH+HPmfcJlm3qAem4IkwuHa5qX7MIurk= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 56360b42-10bb-46b0-043d-08dc925306f3 X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB7130.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2024 00:34:07.8415 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR11MB8676 X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[PR115585] Fix --disable-libstdcxx-verbose abi break
|
expand
|
diff --git a/libstdc++-v3/src/c++11/assert_fail.cc b/libstdc++-v3/src/c++11/assert_fail.cc index 6d99c7958f3..7eed3d072d7 100644 --- a/libstdc++-v3/src/c++11/assert_fail.cc +++ b/libstdc++-v3/src/c++11/assert_fail.cc @@ -22,23 +22,25 @@ // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. +#ifdef _GLIBCXX_VERBOSE_ASSERT #include <cstdio> // for std::fprintf, stderr +#endif #include <cstdlib> // for std::abort -#ifdef _GLIBCXX_VERBOSE_ASSERT namespace std { [[__noreturn__]] void - __glibcxx_assert_fail(const char* file, int line, - const char* function, const char* condition) noexcept + __glibcxx_assert_fail([[maybe_unused]] const char* file, [[maybe_unused]] int line, + [[maybe_unused]] const char* function, [[maybe_unused]] const char* condition) noexcept { +#ifdef _GLIBCXX_VERBOSE_ASSERT if (file && function && condition) fprintf(stderr, "%s:%d: %s: Assertion '%s' failed.\n", file, line, function, condition); else if (function) fprintf(stderr, "%s: Undefined behavior detected.\n", function); +#endif abort(); } } -#endif
From: trcrsired <uwgghhbcad@gmail.com> __glibcxx_assert_fail is not defined when we disable the libstdcxx-verbose. This causes ABI break when a binary is compiled with verbose enabled. --- libstdc++-v3/src/c++11/assert_fail.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)