From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 6E6AC38AA241 for ; Tue, 15 Nov 2022 05:03:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6E6AC38AA241 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Content-Type: multipart/signed; boundary="Apple-Mail=_DD5FB146-015C-4521-8AF9-C8CE72AA8777"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: How can Autoconf help with the transition to stricter compilation defaults? From: Sam James In-Reply-To: <7ef0ce03-d908-649a-a6ee-89fea374d2b1@cs.ucla.edu> Date: Tue, 15 Nov 2022 05:03:08 +0000 Cc: Aaron Ballman , Zack Weinberg , c-std-porting@lists.linux.dev, Autoconf Development , GCC Development , cfe-commits@lists.llvm.org, Gnulib bugs Message-Id: <35EC0D15-150F-4325-8FC9-F31E963B328F@gentoo.org> References: <24ed5604-305a-4343-a1b6-a789e4723849@app.fastmail.com> <251923e7-57be-1611-be10-49c3067adf0d@cs.ucla.edu> <7ef0ce03-d908-649a-a6ee-89fea374d2b1@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --Apple-Mail=_DD5FB146-015C-4521-8AF9-C8CE72AA8777 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 13 Nov 2022, at 00:43, Paul Eggert wrote: >=20 > On 2022-11-11 07:11, Aaron Ballman wrote: >> We believe the runtime behavior is sufficiently dangerous to >> warrant a conservative view that any call to a function will be a = call >> that gets executed at runtime, hence a definitive signature mismatch >> is something we feel comfortable diagnosing (in some form) by = default. >=20 > As long as these diagnostics by default do not cause the compiler to = exit with nonzero status, we should be OK with Autoconf-generated = 'configure' scripts. Although there will be problems with people who run = "./configure CFLAGS=3D'-Werror'", that sort of usage has always been = problematic and unsupported by Autoconf, so we can simply continue to = tell people "don't do that". >=20 Is there somewhere in the autoconf docs we actually say this? I've seen a few instances of folks adding it themselves very early in their configure scripts (which is a pain for distros anyway) which then ends up affecting the rest. --Apple-Mail=_DD5FB146-015C-4521-8AF9-C8CE72AA8777 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY3MdjF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kKoGAP92T3MZ3I56mHkplGF7528CImkZJdGDT7mdWwVCrsmmYgD/WhXKFJOt59xi Yf6e3ntECbLCJmeqstpPBYwQiy+JJw0= =JWVx -----END PGP SIGNATURE----- --Apple-Mail=_DD5FB146-015C-4521-8AF9-C8CE72AA8777--