]> gcc.gnu.org Git - gcc.git/commit
re PR c/4389 (Improper constant folding)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Feb 2002 22:54:35 +0000 (23:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Feb 2002 22:54:35 +0000 (23:54 +0100)
commit4636c87e232d7df60478859d9a15556d5bc3c0c8
tree92091a1ae9884506ec5a5bd1f121978289726ebf
parentc98b201bd9e49891ff049835c3ae79897a885071
re PR c/4389 (Improper constant folding)

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.

From-SVN: r49914
gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020219-1.c [new file with mode: 0644]
gcc/tree.c
This page took 0.058957 seconds and 5 git commands to generate.