Handle trailing arrays in ODR warning (PR lto/81440).
authorMartin Liska <mliska@suse.cz>
Tue, 23 Jan 2018 15:46:02 +0000 (16:46 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 23 Jan 2018 15:46:02 +0000 (15:46 +0000)
commitcde9b2f815e3ce01bb84fef4b1c9a0cd45312eda
tree02ae09c4777c927755c987ca420a91e08314abea
parent813d6db9c42ae27854356c87f0fa16b0f9079118
Handle trailing arrays in ODR warning (PR lto/81440).

2018-01-23  Martin Liska  <mliska@suse.cz>

PR lto/81440
* lto-symtab.c (lto_symtab_merge): Handle and do not warn about
trailing arrays at the end of a struct.
2018-01-23  Martin Liska  <mliska@suse.cz>

PR lto/81440
* gcc.dg/lto/pr81440.h: New test.
* gcc.dg/lto/pr81440_0.c: New test.
* gcc.dg/lto/pr81440_1.c: New test.

From-SVN: r256989
gcc/lto/ChangeLog
gcc/lto/lto-symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr81440.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr81440_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr81440_1.c [new file with mode: 0644]