re PR c/83989 (-Wrestrict false positive with malloc-style functions)
authorJakub Jelinek <jakub@redhat.com>
Fri, 26 Jan 2018 11:47:11 +0000 (12:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 26 Jan 2018 11:47:11 +0000 (12:47 +0100)
commit79fbdeb87e6e91a8179465ea56007e493c7ca751
treeab9e2475b075b18581d93fb911addc7b3ac4712b
parent62f2664539efdced7387a13c2e9a6465f5867c0f
re PR c/83989 (-Wrestrict false positive with malloc-style functions)

PR c/83989
* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Don't
use SSA_NAME_VAR as base for SSA_NAMEs with non-NULL SSA_NAME_VAR.

* c-c++-common/Wrestrict-3.c: New test.

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