Open Bug 1933900 (C23) Opened 6 days ago Updated 6 days ago

Compile C code as C23

Categories

(Firefox Build System :: General, task, P5)

task

Tracking

(Not tracked)

People

(Reporter: cpeterson, Unassigned)

References

(Depends on 1 open bug)

Details

We currently compile Firefox's C code as C17 (bug 1932297). We won't be able to compile as C23 any time soon because we need to update clang and gcc in Firefox's base toolchain. clang doesn't support -std=c23 until clang 18 and gcc provides only experimental support for -std=c23 starting in gcc 14.

When compiling as C23, __STDC_VERSION__ == 202311L.

What's new in C23 since C17:

You need to log in before you can comment on or make changes to this bug.