]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/54486 (Spurious printf format warning mentions nonexistent...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Apr 2013 17:57:32 +0000 (19:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Apr 2013 17:57:32 +0000 (19:57 +0200)
commit4b10ee0ba7fa4b623b7bb8bfe981cf26783cf2c5
treec19c0788f15cda401556d929cfe118f36797b734
parent3fd17365de85bbfd005338e5b6f854e9ab79045f
backport: re PR middle-end/54486 (Spurious printf format warning mentions nonexistent type 'sizetype')

Backported from mainline
2012-09-05  Jakub Jelinek  <jakub@redhat.com>

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: r197444
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr54486.c [new file with mode: 0644]