OSDN Git Service

PR c/4389
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Feb 2002 22:54:35 +0000 (22:54 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Feb 2002 22:54:35 +0000 (22:54 +0000)
commitc53485bbb81a5ddaeeceb228bb0ed1328b5c2e0e
tree92091a1ae9884506ec5a5bd1f121978289726ebf
parent00c7100f102b06d2844bffb7bbf69c78f1bd5d55
PR c/4389
* tree.c (host_integerp): Ensure that the constant integer is
representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
when pos is zero or non-zero respectively.  Clarify comment.
* c-format.c (check_format_info_recurse): Fix host_integerp
usage; the pos argument should be zero when assigning to a
signed HOST_WIDE_INT.

* gcc.dg/20020219-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49914 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020219-1.c [new file with mode: 0644]
gcc/tree.c