]> gcc.gnu.org Git - gcc.git/commit
tm.texi (INTMAX_TYPE, [...]): Define.
authorJoseph Myers <jsm28@cam.ac.uk>
Sun, 8 Oct 2000 21:20:45 +0000 (22:20 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 8 Oct 2000 21:20:45 +0000 (22:20 +0100)
commitb15ad712574a975b0ba2a333bff74db3f19c17d4
tree15af4058397b150088ce3bdbb721fc90ed1842f9
parent2588e44e0019aac9b55c974efd69885eea663f54
tm.texi (INTMAX_TYPE, [...]): Define.

* tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
* c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
CTI_UINTMAX_TYPE.
(intmax_type_node, uintmax_type_node): Define.
* c-common.c (decl_attributes): If pedantic, warn if `mode'
attributes create a type wider than intmax_t.
(T_IM, T_UIM): Define properly.
* c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
defined.
(init_decl_processing): Initialize intmax_type_node and
uintmax_type_node.
* c-lex.c (lex_number): When pedantic and warning for integer
constants that are too large, in C99 mode warn for those that have
a type wider than long long.

cp:
* decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
defined.
(init_decl_processing): Initialize intmax_type_node and
uintmax_type_node.

testsuite:
* gcc.dg/c99-printf-1.c, gcc.dg/c99-scanf-1.c,
gcc.dg/c90-printf-2.c, gcc.dg/c90-scanf-2.c: Define intmax_t and
uintmax_t using <limits.h> to emulate the compiler's internal
logic.  No longer XFAIL %j tests.

From-SVN: r36791
13 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/c-lex.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-printf-2.c
gcc/testsuite/gcc.dg/c90-scanf-2.c
gcc/testsuite/gcc.dg/c99-printf-1.c
gcc/testsuite/gcc.dg/c99-scanf-1.c
gcc/tm.texi
This page took 0.058084 seconds and 5 git commands to generate.