aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2020-07-10 21:35:51 +0000
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:17:20 -0300
commitc8d19fbadbaf677d335635aeece1613daeeba882 (patch)
tree795d0b65514e65ac9c867b186c784a71e7dd5ee0 /gcc/fortran/interface.c
parentbeecdead273b83e30fa9260ba841639f03b1acf0 (diff)
downloadgcc-c8d19fbadbaf677d335635aeece1613daeeba882.zip
gcc-c8d19fbadbaf677d335635aeece1613daeeba882.tar.gz
gcc-c8d19fbadbaf677d335635aeece1613daeeba882.tar.bz2
c: Add C2X BOOL_MAX and BOOL_WIDTH to limits.h
C2X adds BOOL_MAX and BOOL_WIDTH macros to <limits.h>. As GCC only supports values 0 and 1 for _Bool (regardless of the number of bits in the representation, other bits are padding bits and if any of them are nonzero, the representation is a trap representation), the values of those macros can just be hardcoded directly in <limits.h> rather than needing corresponding predefined macros. Bootstrapped with no regressions on x86_64-pc-linux-gnu. gcc/ * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH): New macros. gcc/testsuite/ * gcc.dg/c11-bool-limits-1.c, gcc.dg/c2x-bool-limits-1.c: New tests.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions