]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Do not use *_IS_IEC_60559 == 2
authorJoseph Myers <joseph@codesourcery.com>
Thu, 13 Oct 2022 01:13:36 +0000 (01:13 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 13 Oct 2022 01:13:36 +0000 (01:13 +0000)
commite867f6b7e636391cf70a8d9b9bac79248b3fad67
treee98b0eb46994262c531cb9735c246ffd799c95a1
parent781f477a13ae14ca661018518f4d4a9e6881b0dd
c: Do not use *_IS_IEC_60559 == 2

A late change for C2x (addressing comments from the second round of
editorial review before the CD ballot, postdating the most recent
public working draft) removed the value 2 for *_IS_IEC_60559 (a new
<float.h> macro added in C2x).  Adjust the implementation accordingly
not to use this value.

Bootstrapped with no regressions for x86_64-pc-linux-gnu.

gcc/
* ginclude/float.h (FLT_IS_IEC_60559, DBL_IS_IEC_60559)
(LDBL_IS_IEC_60559): Update comment.

gcc/c-family/
* c-cppbuiltin.cc (builtin_define_float_constants): Do not use
value 2 for *_IS_IEC_60559.

gcc/testsuite/
* gcc.dg/c2x-float-10.c: Do not expect value 2 for *_IS_IEC_60559.
gcc/c-family/c-cppbuiltin.cc
gcc/ginclude/float.h
gcc/testsuite/gcc.dg/c2x-float-10.c