LLVM Clang Now Supports -std=c23

Written by Michael Larabel in LLVM on 11 August 2023 at 07:50 AM EDT. 2 Comments
LLVM
LLVM/Clang developers have been working on C23 language support for some time already but to this point it's only been exposed when using the -std=c2x target or -std=gnu2x for the GNU dialect. However, with C2x having been finalized this summer as C23, the LLVM Clang 18 compiler will now honor the -std=c23 option.

Merged to LLVM Git yesterday for what will be Clang 18 is honoring the -std=c23 and -std=gnu23 options. The existing -std=c2x and -std=gnux2x options will continue to work with the Clang compiler. Now that this next C revision was finalized at the June 2023 WG14 meeting and that the informal name of the standard will be C23 regardless of the year ISO publishes it, LLVM developers are fine with calling it "C23" now.

LLVM Clang C23


The Clang status page shows many of the C23 features already being in place for this open-source C compiler while some feature work does remain.

The already-branched LLVM Clang 17 is due for release in September while LLVM Clang 18 should debut as stable around next March, shortly before the release of the GCC 14.1 compiler. Hopefully for Clang 18 we'll see the C23 support ironed out.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week