c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and __UINTMAX_TYPE__.
authorJoseph Myers <jsm@polyomino.org.uk>
Thu, 5 Aug 2004 00:38:31 +0000 (01:38 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 5 Aug 2004 00:38:31 +0000 (01:38 +0100)
commit852910694f6d4480afd733a62fd6b93de62b51e6
tree06690c205a19e52eb65cb0ac2b6391e8c47bc57c
parent5a05b7c5dad390be66339c575ea4623dfb55cf57
c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and __UINTMAX_TYPE__.

* c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
__UINTMAX_TYPE__.
* c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
__INTMAX_MAX__.
(c_cpp_builtins): Call it.
* doc/cpp.texi: Update.

testsuite:
* gcc.c-torture/execute/builtins/abs-2.c,
gcc.c-torture/execute/builtins/abs-3.c,
gcc.c-torture/execute/builtins/lib/abs.c, gcc.dg/format/format.h,
gcc.dg/torture/builtin-attr-1.c: Use predefined macros for
intmax_t, uintmax_t and their limits.
* gcc.dg/intmax_t-1.c: New test.

From-SVN: r85588
gcc/ChangeLog
gcc/c-common.c
gcc/c-cppbuiltin.c
gcc/doc/cpp.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/abs-2.c
gcc/testsuite/gcc.c-torture/execute/builtins/abs-3.c
gcc/testsuite/gcc.c-torture/execute/builtins/lib/abs.c
gcc/testsuite/gcc.dg/format/format.h
gcc/testsuite/gcc.dg/intmax_t-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/builtin-attr-1.c