https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106119 --- Comment #1 from Tom Cosgrove <tom.cosgrove at arm dot com> --- Note that the command lines just need -Wall, i.e. gcc-12 $ gcc -O2 -Wall -o foo -c foo.c