re PR middle-end/54486 (Spurious printf format warning mentions nonexistent type...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Sep 2012 16:27:55 +0000 (18:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Sep 2012 16:27:55 +0000 (18:27 +0200)
commit854f927236d49dc7d0588818765ad8ad709a24d3
tree03cb50b9550787f1b7177d10b9c73e545ac2a48d
parent305b3c9bdccceafa447ea2a0881e0639591725cf
re PR middle-end/54486 (Spurious printf format warning mentions nonexistent type 'sizetype')

PR middle-end/54486
* builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
build_int_cst with size_type_node instead of size_int.

* c-c++-common/pr54486.c: New test.

From-SVN: r190986
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr54486.c [new file with mode: 0644]