public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] GCC 14 unleashed
@ 2024-05-19 14:36 Sam James
  2024-05-19 15:31 ` Sam James
  0 siblings, 1 reply; 2+ messages in thread
From: Sam James @ 2024-05-19 14:36 UTC (permalink / raw)
  To: gentoo-dev; +Cc: toolchain

[-- Attachment #1: Type: text/plain, Size: 1839 bytes --]

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=* 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 issues)

The implicit-in-configure issues are more important than c99-porting because 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] GCC 14 unleashed
  2024-05-19 14:36 [gentoo-dev] GCC 14 unleashed Sam James
@ 2024-05-19 15:31 ` Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2024-05-19 15:31 UTC (permalink / raw)
  To: gentoo-dev; +Cc: toolchain

[-- Attachment #1: Type: text/plain, Size: 152 bytes --]

Sam James <sam@gentoo.org> writes:

Oh, and:
> * The code was broken before (badly) [...]

... and therefore you should be revbumping for fixes. 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-19 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-19 14:36 [gentoo-dev] GCC 14 unleashed Sam James
2024-05-19 15:31 ` Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox