[PATCH v1 00/35] Require GNU C --at least GCC 5 or Clang 4-- in headers
Alejandro Colomar
alx@kernel.org
Mon Nov 10 10:35:23 GMT 2025
Hi Florian,
On Mon, Nov 10, 2025 at 11:17:48AM +0100, Florian Weimer wrote:
> >> > Alejandro Colomar (35):
> >> > Assume __GNUC__
> >> > Assume __GNUC__ >= 2
> >> > Assume __GNUC__ >= 3
> >> > Assume __GNUC__ >= 4
> >>
> >> No, this breaks some versions of Oracle Pro*C, tools based on CKit (such
> >> as mlnlffigen), and many other things.
> >
> > Thanks! Is it because of 'Assume __GNUC__'? Or because one of the
> > version bumps? Could we assume a higher __GNUC__ but keep allowing
> > non-__GNUC__?
>
> I don't know. Changing <sys/cdefs.h> is probably not advised because
> it's shared with gnulib. Support for GCC 1 can probably be removed from
> the other headers, but the cleanup opportunities seem rather minimal.
Apart from the cleanup opportunity, there's the benefit on new code.
The origin of this was the discussion about adding a new function that
returns a _Bool. If we require a C99 compiler, new code could be much
better.
Cheers,
Alex
>
> Thanks,
> Florian
>
--
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251110/65464b81/attachment.sig>
More information about the Libc-alpha
mailing list