From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id g6sKGVUicmaOrj0AWB0awg (envelope-from ) for ; Tue, 18 Jun 2024 20:12:05 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=EG2H3XZU; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 548F21E0C1; Tue, 18 Jun 2024 20:12:05 -0400 (EDT) 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 (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 406411E092 for ; Tue, 18 Jun 2024 20:12:03 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B620F3884549 for ; Wed, 19 Jun 2024 00:12:02 +0000 (GMT) Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 6AF2A3882AEC for ; Wed, 19 Jun 2024 00:11:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6AF2A3882AEC Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6AF2A3882AEC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718755903; cv=none; b=Dpby7lpGn3iuTtQDZnVYOjKB9Kvjma8lNQM+5f+aKJ8Fvrz1uOGm1g6KC0cIGtFkZbVWyWifr9mmW7fXXwC5mVd8H7xKWJbbdekXYoPbe/bVlnSGYhYieZ+O8wu5pvp7cZ3AQopYJbllRyHP/2fk8EGqvvAniy4j9FIU0tvBxoQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718755903; c=relaxed/simple; bh=klntyrfnLdfFs0npxFi8/NcJqDATE8HOueI/NniXi7w=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QrfTxmmsL2pxUTMys/9j0mhiigd6hXz4hG/EbVyCM3iCJmLcT32xXBkwCjaPsar72n5sYMonYxPzcsnRNW3YBqsxbKDA0YmFO8Hg2PcgTnNHR9CNkDe35vZJmNyTYQ9po+xbFmGsaNC2P7nT6ayjfenFrzTkZ6h/PqkJ/WimQyI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6009a.ext.cloudfilter.net ([10.0.30.184]) by cmsmtp with ESMTPS id JezssOLTJAidIJivMsTCL7; Wed, 19 Jun 2024 00:11:41 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id JivKsMLkDr2cRJivKssZqR; Wed, 19 Jun 2024 00:11:38 +0000 X-Authority-Analysis: v=2.4 cv=UotlNfwB c=1 sm=1 tr=0 ts=6672223a a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=T1WGqf2p2xoA:10 a=Qbun_eYptAEA:10 a=zd2uoN0lAAAA:8 a=kr8pegVxPZsF3ZTTcpsA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dWxLdiwvv1Ut3a8kAhFIHPCvrxJYdiQQwmHRfhF/eeg=; b=EG2H3XZU7HfyrSSMnElE/tClnx ktyQt7lR8jw+bynd/rWssvnOcqm0RImfj/8iJGuVHMNqWvfZTX/Dvzr+/5s4rtIeRZxZIdGTPAe1p 4yxJ0SMIBe6fuRT20UtK/q82K; Received: from 97-122-118-144.hlrn.qwest.net ([97.122.118.144]:45514 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sJivK-0017vq-0N; Tue, 18 Jun 2024 18:11:38 -0600 From: Tom Tromey To: Lancelot SIX Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/python/python-internal.h: avoid uninitialized constexpr In-Reply-To: (Lancelot SIX's message of "Tue, 18 Jun 2024 22:26:02 +0100") References: <20240618090952.537478-1-lancelot.six@amd.com> <8734pacjju.fsf@tromey.com> <2317caf4-6fdb-46d1-b2aa-caffed3faffe@amd.com> <87wmmmxcat.fsf@tromey.com> <72ea54a7-b6de-42b3-8889-f8921c0d2074@amd.com> <87sexax8tb.fsf@tromey.com> X-Attribution: Tom Date: Tue, 18 Jun 2024 18:11:37 -0600 Message-ID: <87jzilyeo6.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.118.144 X-Source-L: No X-Exim-ID: 1sJivK-0017vq-0N X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-118-144.hlrn.qwest.net (prentzel) [97.122.118.144]:45514 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfHQ1D82370eiGSXiuCVkUE9x8ohc9TmHnVGoooLA77/kaMmMgcbIH/Ikfah6+04rqzIJ3aen+tqOmTnJMQ7IbCgDgUjm7+yCOaUpuB0fDAmavxqxqWKS JDBoUaBOtu+ZZGbo6Y44DVianuLozAa/CutkmHlb3Z5ZsNGQAipB6TzceEAIZkk1OO1op70oy4oK3eci5TdgF6kVq3fzB+cnisU= X-Spam-Status: No, score=-3013.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org >>>>> "Lancelot" == Lancelot SIX writes: Lancelot> That works with GCC, but still fails with Clang. I still have Lancelot> duplicate symbol errors (both at -O0 and -O3). My understanding is Lancelot> that the compiler can still handle constexr as const if it wants, so Lancelot> marking those symbols constexpr will not necessarily prevent them from Lancelot> being materialized in the binary. Which symbol is duplicate? Anyway if that is the case, then why does your patch work? Tom