OSDN Git Service

* c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Aug 2004 00:38:31 +0000 (00:38 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Aug 2004 00:38:31 +0000 (00:38 +0000)
commit36bccbfc1deca48f3531123585ce40ae74fc7a9b
tree06690c205a19e52eb65cb0ac2b6391e8c47bc57c
parenta2329fded9193e51ecd545282dad5270fc6e9852
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85588 138bc75d-0d04-0410-961f-82ee72b054a4
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