[PATCH] c: Don't pedwarn on _FloatN{,x} or {f,F}N{,x} suffixes for C2X

Joseph Myers joseph@codesourcery.com
Tue Sep 5 21:34:37 GMT 2023

On Tue, 5 Sep 2023, Jakub Jelinek via Gcc-patches wrote:

> Hi!
> Now that _Float{16,32,64,128,32x,64x,128x} and
> {f,F}{16,32,64,128,32x,64x,128x} literal suffixes are in C23 standard,
> I think it is undesirable to pedwarn about these for -std=c2x, so this
> patch uses pedwarn_c11 instead.  In c-family/, we don't have that function
> and am not sure it would be very clean to define dummy pedwarn_c11 in the
> C++ FE, so the patch just does what pedwarn_c11 does using pedwarn/warning.
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?


Joseph S. Myers

More information about the Gcc-patches mailing list