OSDN Git Service

PR middle-end/46647
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 09:38:54 +0000 (09:38 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 09:38:54 +0000 (09:38 +0000)
commitd5d2f74a7a1c6564e4b922f1a11e25c6dab8e072
tree4b01402047c5fcad2cdf20c06ad29f8bbf3ecae3
parent2284bb2d2ba48602ff0bcfd1cb482cfeb9c3cee9
PR middle-end/46647
* builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.

* gcc.dg/pr46647.c: New test.

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