On 11/5/20 4:21 PM, Joseph Myers wrote: > C2x adds macros for decimal floating-point signaling NaNs to > <float.h>. Add these macros to GCC's <float.h> implementation. > > Note that the current C2x draft has these under incorrect names > D32_SNAN, D64_SNAN, D128_SNAN. The intent was to change the naming > convention to be consistent with other <float.h> macros when they were > moved to <float.h>, so DEC32_SNAN, DEC64_SNAN, DEC128_NAN, which this > patch uses (as does the current draft integration of TS 18661-3 as an > Annex to C2x, for its _Decimal* and _Decimal*x types). > > This patch is relative to a tree with > <https://gcc.gnu.org/pipermail/gcc-patches/2020-October/557136.html> > and > <https://gcc.gnu.org/pipermail/gcc-patches/2020-November/558126.html> > (both pending review) applied. > > Bootstrapped with no regressions for x86_64-pc-linux-gnu. OK to commit? > > gcc/ > 2020-11-05 Joseph Myers <jos...@codesourcery.com> > > * ginclude/float.h (DEC32_SNAN, DEC64_SNAN, DEC128_SNAN): New C2x > macros. > > gcc/testsuite/ > 2020-11-05 Joseph Myers <jos...@codesourcery.com> > > * gcc.dg/dfp/c2x-float-dfp-7.c, gcc.dg/dfp/c2x-float-dfp-8.c: New > tests. > * gcc.dg/c2x-float-no-dfp-3.c: Also check that DEC32_SNAN, > DEC64_SNAN and DEC128_SNAN are not defined.
OK jeff