re PR lto/83954 (LTO: Bogus -Wlto-type-mismatch warning for array of pointer to incom...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 30 Jan 2018 13:17:40 +0000 (14:17 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 30 Jan 2018 13:17:40 +0000 (13:17 +0000)
commit44c945e62c87d9e01156c9cd6da93f69b984be37
tree2454d2d5f9eefccf53c515d30f9b23f948f986f0
parent6439c358063d3660e08a7931d720b901282879f8
re PR lto/83954 (LTO: Bogus -Wlto-type-mismatch warning for array of pointer to incomplete type)

PR lto/83954
* lto-symtab.c (warn_type_compatibility_p): Silence false positive
for type match warning on arrays of pointers.
* gcc.dg/lto/pr83954.h: New testcase.
* gcc.dg/lto/pr83954_0.c: New testcase.
* gcc.dg/lto/pr83954_1.c: New testcase.

From-SVN: r257183
gcc/lto/ChangeLog
gcc/lto/lto-symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr83954.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr83954_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr83954_1.c [new file with mode: 0644]