From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E54421581D3 for ; Sun, 19 May 2024 14:36:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C359AE29F0; Sun, 19 May 2024 14:36:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B0B7E29EC for ; Sun, 19 May 2024 14:36:17 +0000 (UTC) From: Sam James To: gentoo-dev@lists.gentoo.org Cc: toolchain@gentoo.org Subject: [gentoo-dev] GCC 14 unleashed Organization: Gentoo Date: Sun, 19 May 2024 15:36:08 +0100 Message-ID: <87ed9xlvhj.fsf@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: 29ec43e2-b2b8-44f9-a2de-e52086495636 X-Archives-Hash: a63048ee32bbfdb98be75350fe5b0d46 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, As we discussed a bunch in #gentoo-toolchain over the last few weeks, GCC 14 is now in ~arch. We've spent the last > 2 years working on this and fixing lots of packages, but kind of reached the limit of how much a handful of people can do. This is kind of the analogue of the Clang post I made a while ago [0]. It makes a lot of dangerous, broken C constructs errors by default. We have a writeup at https://wiki.gentoo.org/wiki/Modern_C_porting. See also https://gcc.gnu.org/gcc-14/porting_to.html. Advice: * Please ask us in #gentoo-toolchain if you need help understanding how to fix a bug. You may have users submitting patches, but please ask if you're unsure if they're correct. * Please only add casts if you're sure they're right. Otherwise, they're just suppressing it. * Report upstream immediately if you see an issue, even if you don't yet have time to try fix it yourself. This means upstream can work on it in the background and other distros and folks may end up sharing their patches. * Similarly, it's paramount that patches get submitted upstream so they can be reviewed and other distros can benefit. We have benefitted a lot from others doing that, and vice-versa. * The code was broken before (badly) and this just surfaces that. -Wno-error=3D* and friends are not an option. The wiki page covers that but I can explain it more if needed. The tracker bugs are: * https://bugs.gentoo.org/870412 (c99-porting) * https://bugs.gentoo.org/906027 (implicit-in-configure) * https://bugs.gentoo.org/914580 (gcc-14, general; only use for other issue= s) The implicit-in-configure issues are more important than c99-porting becaus= e of the risk of a misconfigured build. [0] https://public-inbox.gentoo.org/gentoo-dev/87tu4c8z49.fsf@mop.mail-host= -address-is-not-set/ thanks, sam --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZkoOWl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZAKcAD+MyZ9tF190UQ6OsjIKFhSSKq6O47ctheMfbFB sJtPU6gA/idQL8NgOE260VHYROylFHsjiqaI3tqsQbIhz2+Qd9sB =+nLn -----END PGP SIGNATURE----- --=-=-=--