re PR middle-end/86202 (ICE in get_range_info calling an invalid memcpy() declaration)
authorMarek Polacek <polacek@redhat.com>
Tue, 3 Jul 2018 14:21:15 +0000 (14:21 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 3 Jul 2018 14:21:15 +0000 (14:21 +0000)
commit3f27391f45bee92884daf6dcf40a652a38a69658
tree2d2556adeab27e19a97452f9eeb0fc7b3f90c73e
parent2831d6814a2f0f01b7ad4dcda1bf488ffb3addd1
re PR middle-end/86202 (ICE in get_range_info calling an invalid memcpy() declaration)

PR middle-end/86202
* gimple-fold.c (size_must_be_zero_p): Check the type of the size.

* gcc.dg/Wint-conversion-2.c: New test.

From-SVN: r262344
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wint-conversion-2.c [new file with mode: 0644]