From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 331DF385840C; Mon, 22 Nov 2021 22:54:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 331DF385840C Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 7188D280B1D; Mon, 22 Nov 2021 23:54:48 +0100 (CET) Date: Mon, 22 Nov 2021 23:54:48 +0100 From: Jan Hubicka To: i at maskray dot me Cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug driver/100937] configure: Add --enable-default-semantic-interposition Message-ID: <20211122225448.GA63195@kam.mff.cuni.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2021 22:54:52 -0000 > (The -fno-semantic-interposition thing is probably the biggest performance gap > between gcc -fpic and clang -fpic.) Yep, it is often confusing to users (who do not understand what ELF interposition is) that clang and gcc disagree on default flags here. Recently -Ofast was extended to imply -fno-semantic-interposition that will hopefully make more people notice this. While doing that I have added per-symbol flag about interposition to the symbol table, so we can also support __atttribute__ ((semantic_interposition)) and __attribute__((no_semantic_interpoition)) if that would be useful for something.