From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gproxy2-pub.mail.unifiedlayer.com (gproxy2-pub.mail.unifiedlayer.com [69.89.18.3]) by sourceware.org (Postfix) with ESMTPS id 5AD7F383820D for ; Thu, 26 May 2022 17:35:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5AD7F383820D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mad-scientist.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mad-scientist.net Received: from cmgw15.mail.unifiedlayer.com (unknown [10.0.90.130]) by progateway4.mail.pro1.eigbox.com (Postfix) with ESMTP id 4435210047785 for ; Thu, 26 May 2022 17:35:28 +0000 (UTC) Received: from box5922.bluehost.com ([162.241.30.80]) by cmsmtp with ESMTP id uHOQnYr2Bkku4uHORnmnYj; Thu, 26 May 2022 17:35:27 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=I6Wg+Psg c=1 sm=1 tr=0 ts=628fba5f a=u+82WREdhvUKZ7QTvcqjvQ==:117 a=u+82WREdhvUKZ7QTvcqjvQ==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=1ZATOFHLoCsALMhg:21 a=IkcTkHD0fZMA:10:nop_charset_1 a=oZkIemNP1mAA:10:nop_rcvd_month_year a=3EOfIcITIxQA:10:endurance_base64_authed_username_1 a=t9CA2PKiAWX7qHbo7KwA:9 a=QEXdDO2ut3YA:10:nop_charset_2 a=F-lto-L_AMoDakgENHIT:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mad-scientist.us; s=default; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:Reply-To:From:Subject:Message-ID: Sender:Cc: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=+VrJreZhOQk8YPFVkIRfW8rocovoJ3ZRe8CkXWHJkMQ=; b=zREm/NNIWrdKlURMjOVO9npkbF 7OycPPhTRq6GDZbsoUHiqLSA5vnsSvwUrJ6hOJXQpSMgGI3YL8ZBcHajGGt2cBiD3nS3FBQTO6GT7 i9bJe7cNty392WI6BbypgJM2i; Received: from [160.231.0.90] (port=19255 helo=llin-psh13-dsa.dsone.3ds.com) by box5922.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nuHOQ-000ywx-Ly for gcc-help@gcc.gnu.org; Thu, 26 May 2022 11:35:26 -0600 Message-ID: <59accfc837a7023539cc27ab36eeaab0029a0315.camel@mad-scientist.net> Subject: Re: -Wpsabi: to keep or not to keep? From: Paul Smith Reply-To: paul@mad-scientist.net To: "gcc-help@gcc.gnu.org" Date: Thu, 26 May 2022 13:35:25 -0400 In-Reply-To: <11e542a0fe370d5abae6e0b6401b268321138fda.camel@mad-scientist.net> References: <11e542a0fe370d5abae6e0b6401b268321138fda.camel@mad-scientist.net> Organization: Please remain calm--I may be mad but I am a professional! Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 (by Flathub.org)) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5922.bluehost.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mad-scientist.net X-BWhitelist: no X-Source-IP: 160.231.0.90 X-Source-L: No X-Exim-ID: 1nuHOQ-000ywx-Ly X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (llin-psh13-dsa.dsone.3ds.com) [160.231.0.90]:19255 X-Source-Auth: paul@mad-scientist.us X-Email-Count: 1 X-Source-Cap: bWFkc2NpZTE7bWFkc2NpZTE7Ym94NTkyMi5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-1.7 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: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2022 17:35:31 -0000 On Sun, 2022-05-22 at 15:05 -0400, Paul Smith wrote: > Upgrading my environment to GCC 11.3 (from GCC 10.2) I'm seeing these > new warnings: Sorry for the delay I just couldn't find the time/energy to recreate this email. I'm seeing this output when I compile on GNU/Linux for ARM: Foo.cpp: In member function 'virtual std::pair Foo::cos= t(double, double, const Quantifier*) const': Foo.cpp:100:101: note: parameter passing for argument of type 'std::pai= r' when C++17 is enabled changed to match C++14 in GCC 10.1 These aren't emitted on Intel. I've investigated these notes but don't see any way to avoid them, short of using -Wno-psabi. Just for clarity, I build all my thirdparty prerequisites myself (except stdc and other system libraries, which are in C) and I rebuild them all when I switch compilers. So there shouldn't be any (C++) code built with any other version of GCC linked in my code. Given this does anyone have opinions on how to proceed (assuming I don't want to just let these be printed): Can I modify the code somehow so they're not printed? Given the above is it reasonable to just add -Wno-psabi to the compile line and not worry that I'll miss some important ABI note? Or should I use pragmas to disable this diagnostic only in the specific place(s) where this warning appears today?