make .POSIX CC=c17

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Sun Nov 1 17:03:53 GMT 2026


Hi folks,

SUS V5 POSIX Issue 8 2024 sets CC=c17.
Simple patch to src/read.c is at bottom.
But you may want to decide if you are going to do anything with the changed 
requirement about backward/forward compatibility?
Perhaps also support .POSIX2008 and .POSIX2024, default to former or latter?

https://cgit.git.savannah.gnu.org/cgit/make.git/tree/src/read.c#n1899
...
check_specials (struct nameseq *files, int set_default)
...
       if (!posix_pedantic && streq (nm, ".POSIX"))
...
            /* These default values are based on IEEE Std 1003.1-2008.
               It requires '-O 1' for [CF]FLAGS, but GCC doesn't allow
               space between -O and the number so omit it here.  */
-          define_variable_cname ("CC", "c99", o_default, 0);
+          define_variable_cname ("CC", "c17", o_default, 0);

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin-apps mailing list