PR tree-optimization/83655 - ICE on an invalid call to memcpy declared with no prototype
commitcf3fc0e8ac5a9b65bb213f979a4030e43243a5fc
authorMartin Sebor <msebor@redhat.com>
Wed, 3 Jan 2018 23:41:32 +0000 (3 23:41 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 3 Jan 2018 23:41:32 +0000 (3 16:41 -0700)
tree1798e91130802e29c9e570a63e5f6dc7d6080c69
parent2438cb6a1dd5f983314b21988b915699c01a2e28
PR tree-optimization/83655 - ICE on an invalid call to memcpy declared with no prototype

gcc/testsuite/ChangeLog:

PR tree-optimization/83655
* gcc.dg/Wrestrict-5.c: New test.
* c-c++-common/builtins.c: New test.

gcc/ChangeLog:

PR tree-optimization/83655
* gimple-ssa-warn-restrict.c (wrestrict_dom_walker::check_call): Avoid
checking calls with invalid arguments.

From-SVN: r256218
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/builtins.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wrestrict-5.c [new file with mode: 0644]