On Thu, 14 Nov 2024, Jakub Jelinek wrote:

> --- gcc/ginclude/float.h.jj   2024-10-25 10:00:29.472767800 +0200
> +++ gcc/ginclude/float.h      2024-11-13 17:50:46.625592746 +0100
> @@ -515,51 +515,63 @@ see the files COPYING3 and COPYING.RUNTI
>  #undef DEC32_MANT_DIG
>  #undef DEC64_MANT_DIG
>  #undef DEC128_MANT_DIG
> +#undef DEC64X_MANT_DIG
>  #define DEC32_MANT_DIG       __DEC32_MANT_DIG__
>  #define DEC64_MANT_DIG       __DEC64_MANT_DIG__
>  #define DEC128_MANT_DIG      __DEC128_MANT_DIG__
> +#define DEC64X_MANT_DIG      __DEC64X_MANT_DIG__

All the new <float.h> macros should be under a 
__STDC_WANT_IEC_60559_TYPES_EXT__ conditional like the _FloatN / _FloatNx 
ones are (together of course with a conditional that DFP is supported), 
since this is an Annex H feature.

> @@ -619,6 +635,8 @@ see the files COPYING3 and COPYING.RUNTI
>  #define DEC64_SNAN   (__builtin_nansd64 (""))
>  #undef DEC128_SNAN
>  #define DEC128_SNAN  (__builtin_nansd128 (""))
> +#undef DEC64X_SNAN
> +#define DEC64X_SNAN  (__builtin_nansd64x (""))
>  
>  #endif /* C23 */

This one would require all three conditionals 
(__STDC_WANT_IEC_60559_TYPES_EXT__, DFP supported, C23) as it wasn't in TS 
18661-3.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to