cross-posted from: https://lemmy.ml/post/21458338

The GNU Compiler Collection (GCC) support for the C23 programming language standard is now considered “essentially feature-complete” with GCC 15. As such they are preparing to enable the C23 language version (using the GNU23 dialect) by default for the C language version of GCC when not otherwise specified.

Preparations are now underway to set the default C language version of GCC to GNU23 as the GNU dialect of C23. Or in other words, implying -std=gnu23 when no other C standard is specified.

  • BB_C@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    19
    ·
    6 days ago

    That’s good and all, but we all explicitly pass -std=gnu99 (or -std=c99 if you don’t care about MSYS2 compat) in our build scripts buddy 😉

    Okay, maybe not all all. But you get the idea.

    Are there any relevant projects who use the increasingly C+±infested newer versions of the language?

    • zarenki@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      5 days ago

      Newer than C99? Both the Linux kernel and systemd build with gnu11. I’d call those pretty relevant.

      C23 is still far too new (still a draft) for any major projects that care about compiler compatibility.

      • BB_C@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        4 days ago

        systemd

        Interesting. So they did it two years ago for the lols… i mean for the u8"😀"s*…which wasn’t even really needed as one of the PR comments pointed out.

        * Yes, the mission creep is so bad the shit show that is systemd has emoticons.