From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id E70C93861863 for ; Thu, 15 Feb 2024 16:21:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E70C93861863 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E70C93861863 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708014095; cv=none; b=gU2nd+FTxtklWYfBSh+yvceNRnunkqcPWKwV6WVzIaxThFL+sgVqKhv24hq1Ei5fWH7R8L49dqt2jTgbqpKShj4Ve3EuAdyCsdmCYFU3RpryTh5QFxA7fY18JItz/X+TIyy3aSAk+vOhEGbvuQ8JlrVp1cbrF7mGF7lZD+wvYAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708014095; c=relaxed/simple; bh=Zt6t6HVDvfR/p8Rn22GM4vZQs/GRcmtbf0HCWMs5JPc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=I/KRFw3qojATxm0pWjcInd53fA6vprJ1FKna9+3vjlZEY+noY4vffW9LpIrJoCSADB6sK7SqhBttUlRkbRFxRDcdBIzcMdmHEgbUXg1hJpZdrck1kMwtfCJXfFYptsjIVQUJnP2oMHN8YYqu2PBtaUdfkiOTXP58aQXBNt/AHA4= ARC-Authentication-Results: i=1; server2.sourceware.org References: <87v876ssxg.fsf@oldenburg.str.redhat.com> <87cyt7toso.fsf@gentoo.org> <87le7laeyo.fsf@oldenburg.str.redhat.com> User-agent: mu4e 1.10.8; emacs 30.0.50 From: Sam James To: Florian Weimer Cc: Sam James , gcc-patches@gcc.gnu.org, Gerald Pfeifer Subject: Re: [PATCH] Notes on the warnings-as-errors change in GCC 14 Date: Thu, 15 Feb 2024 16:20:24 +0000 Organization: Gentoo In-reply-to: <87le7laeyo.fsf@oldenburg.str.redhat.com> Message-ID: <874je9ofzv.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,KAM_NUMSUBJECT,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 List-Id: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Florian Weimer writes: > * Sam James: > >> It's fine if you leave this out, but consider mentioning the common >> pitfall of autoconf projects not including config.h consistently before >> all inclues. We could also mention AC_USE_SYSTEM_EXTENSIONS. > > I added:=20 > > =E2=80=9C > Alternatively, projects using using Autoconf > could enable AC_USE_SYSTEM_EXTENSIONS. > =E2=80=9D > > inclusion is a larger issue, I think, best addressed by > future diagnostics. OK, works for me. We should discuss some options for the latter at some point though (I think we could do it for libc cases where it matters for LFS at least) but that's for another time. > >>> +

>>> +When building library code on GNU systems, it was possible to call >>> +undefined (not just undeclared) functions and still run other code in >>> +the library, particularly if ELF lazy binding was used. Only >>> +executing the undefined function call would result in a lazy binding >>> +error and program crash. >> >> Maybe explicitly refer to the bfd linker's relaxed behaviour so it >> sounds less mysterious. > > Like this? > > =E2=80=9C >

> When building library code on GNU systems, > it was possible to call > undefined (not just undeclared) functions > and still run other code in the library, particularly if ELF lazy binding > was used. Only executing the undefined function call would result in a > lazy binding error and program crash. > =E2=80=9D Sounds good, thanks. > > Thanks, > Florian best, sam --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZc46BF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZDDOgD9EDqCmfosF1x1jAKGyCf+UtI+2nTVcuL6nIWq iacQwbMBAOuHPTE+p/jV9FlJD8FcP7Fco8ABroqr2t3IObDN8SYH =u2gX -----END PGP SIGNATURE----- --=-=-=--