[ATTN] GCC and make Maintainers: SUS V5 POSIX 2024 make CC default c17
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Sun Nov 1 16:07:37 GMT 2026
On 2026-11-01 05:12, Jon Turney via Cygwin-apps wrote:
> On 31/10/2026 23:39, Brian Inglis via Cygwin-apps wrote:
>> Hi folks.
>>
>> SUS V5 POSIX 2024, quoted at bottom, shows that POSIX conformant make sets the
>> default value for CC = c17, which is not installed in Cygwin.
>>
>> For POSIX conformance, could we please have c17 installed in upcoming releases
>> of gcc-core, assuming there is some method for having it defined and installed
>> to support -std=c17 or -std=gnu17 by default.
>
> I don't think that actually exists in gcc.
>
> And while -std=gnu17 would be the actually partially useful one of those
> options, it's still pointless, because it's not conformant.
>
>> Could we please also have make updated to default to this setting, assuming
>> there are POSIX updates or options available.
>
> Uh, I think this is a really weird request.
>
> What is the benefit of this other than "POSIX conformance"? Is there anything
> else in the free software world that does this?
We (newlib/Cygwin) do - look at the library and doc updates after I updated the
POSIX compatibility docs to SUSv5 Issue 8 2024!
GNU dev Paul Eggert expects it in his tzcode Makefiles, and probably elsewhere!
> Anyhow, no, let's not locally patch both make and gcc to make this change. And
> then change it all again when a future POSIX revision makes C23 the default...
>
> If you really, seriously, think this is needed, I suggest you raise it as an
> issue in GNU make and/or gcc.
I have done so for GNU make bugs, search for CC=c99, as nothing had been raised
there since 2024, but I have not as yet been able to figure out where gcc stands.
--
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