From patchwork Wed Apr 17 08:16:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kretz X-Patchwork-Id: 1924549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4VKDKz6P0Xz1yXv for ; Wed, 17 Apr 2024 18:17:43 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DDB96385840E for ; Wed, 17 Apr 2024 08:17:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from lxmtout2.gsi.de (lxmtout2.gsi.de [140.181.3.112]) by sourceware.org (Postfix) with ESMTPS id 282303858D20; Wed, 17 Apr 2024 08:17:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 282303858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gsi.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gsi.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 282303858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.181.3.112 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713341829; cv=none; b=beLNgP2GqZG6LHNmLBW5Wk0IhxwCCX6+vLM5ZdczXB3XLpWueJeCIjjU6bEBQ4wY24638ykN+ETdwcwLkId75aFxPw/zT99wLBfp2w5XFGFqvueZ0RgePqfijyTcF2Z69tmQ7SKXqMNPWyFJ2KoouLamUOdwucZB8msmD7w1FKo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713341829; c=relaxed/simple; bh=l43dMGkZ5KUCCrUMrqPZi1oAivjQRpdZm6r/jR/CSZA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=rjme07SIbvcWlcFYYsYrWa8BMfHJhSqLR/ep+OtcZvuRzeLsvjy5cZcFLuUOsdaUWl1JRoajIaYkYjsqspxr2u6uuws4PaCDrOr79nS950bfmdpcIQvK4bvIVbteE5uilQO4Xp7yufSHLlMSXBNJ93Q8B+wXGruXnLVdMiEBIxQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by lxmtout2.gsi.de (Postfix) with ESMTP id 5CBB420350F8; Wed, 17 Apr 2024 10:17:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lxmtout2.gsi.de Received: from lxmtout2.gsi.de ([127.0.0.1]) by localhost (lxmtout2.gsi.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7EXgl0JwB0ti; Wed, 17 Apr 2024 10:17:02 +0200 (CEST) Received: from srvEX8.campus.gsi.de (unknown [10.10.4.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lxmtout2.gsi.de (Postfix) with ESMTPS id 367D0203E807; Wed, 17 Apr 2024 10:17:02 +0200 (CEST) Received: from minbar.localnet (140.181.3.12) by srvEX8.campus.gsi.de (10.10.4.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 17 Apr 2024 10:17:01 +0200 From: Matthias Kretz To: , Subject: [PATCH] libstdc++: Add include guard to simd-internal header Date: Wed, 17 Apr 2024 10:16:56 +0200 Message-ID: <3396847.CbtlEUcBR6@minbar> Organization: GSI Helmholtz Center for Heavy Ion Research MIME-Version: 1.0 X-Originating-IP: [140.181.3.12] X-ClientProxiedBy: srvEX7.Campus.gsi.de (10.10.4.97) To srvEX8.campus.gsi.de (10.10.4.160) X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, BODY_8BITS, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP, URIBL_SBL_A 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org This never showed up as an issue because it's an internal header and implicitly guarded by bits/simd.h. OK for trunk? Any reason to backport? --------------------- 8< ------------------ Signed-off-by: Matthias Kretz libstdc++-v3/ChangeLog: * include/experimental/bits/numeric_traits.h: Add include guard. --- libstdc++-v3/include/experimental/bits/numeric_traits.h | 4 ++++ 1 file changed, 4 insertions(+) +#endif // _GLIBCXX_EXPERIMENTAL_BITS_NUMERIC_TRAITS_H diff --git a/libstdc++-v3/include/experimental/bits/numeric_traits.h b/ libstdc++-v3/include/experimental/bits/numeric_traits.h index b195de7c3db..8717f684d96 100644 --- a/libstdc++-v3/include/experimental/bits/numeric_traits.h +++ b/libstdc++-v3/include/experimental/bits/numeric_traits.h @@ -22,6 +22,9 @@ // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // . +#ifndef _GLIBCXX_EXPERIMENTAL_BITS_NUMERIC_TRAITS_H +#define _GLIBCXX_EXPERIMENTAL_BITS_NUMERIC_TRAITS_H + #include namespace std { @@ -565,3 +568,4 @@ struct __has_iec559_behavior<__signaling_NaN, long double> #endif // __FINITE_MATH_ONLY__ } // namespace std