[ATTN] GCC and make Maintainers: SUS V5 POSIX 2024 make CC default c17

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Sun Nov 1 15:55:20 GMT 2026


On 2026-11-01 04:29, ASSI via Cygwin-apps wrote:
> Brian Inglis via Cygwin-apps writes:
>> 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.
> 
> I've never used these version-wrapped compiler invocations in decades
> and I know of nobody who still does.

Hi folks,

Makefile in tzcode assumes exactly that, which was where I learned that was the 
POSIX requirement!
There are probably some other packages, that also do their own non-autotools 
`make` that have those assumptions, otherwise they can not have any.

>> 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.
> 
> The default for gcc since version 11 is -std=gnu17 already, so
> effectively that changes nothing except for the GNU extensions.  The
> existing c89/c99 wrappers force strict ANSI compliance.  I'll add the
> c17 wrapper with the same semantics as the existing ones (i.e. strict
> compliance, which is useless for just about all sources) for the next
> update.

Thank you very much, I am sure it should be in the process of being added, but 
it is difficult to see what is going on with gcc, as I am sure you are aware.

It is not useless for compliant, portable sources like tzcode, and others that 
also build themselves under *BSD, MacOSX, Windows.

>> Could we please also have make updated to default to this setting,
>> assuming there are POSIX updates or options available.
> 
> The default is CC=cc in normal mode and CC=c99 in .POSIX: mode; which
> can't be forced via command line or POSIXLY_CORRECT=1, but requires that
> pseudo target in Makefile (so you can't just have a POSIX wrapper).  I
> have no idea how that is currently handled when compiling GNU make, I
> don't think the POSIX standard to target can be configured yet.

I updated the GNU make bug report for CC=c99 that added the POSIX defaults table 
to support these settings, to request that setting be changed to CC=c17, 
although they could add a .POSIX2024* and/or .POSIX2018* target.

-- 
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

*[I wish devs could learn the lessons of Y2K and prefix the century to all years 
used: I have to mentally suppress or manually edit those out when unsupported.
There are options in tzcode, date, strftime, etc. to enable complaints about two 
digit years, at build and run times, which I am tempted to enable, as systems, 
libraries, and apps year wrap settings could flip any year, just to be BOFHs!]


More information about the Cygwin-apps mailing list