Handle trailing arrays in ODR warning (PR lto/81440).
commit77cd3f2ba027bfee37bd8575519666bae90ddfe8
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Jan 2018 15:46:02 +0000 (23 15:46 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Jan 2018 15:46:02 +0000 (23 15:46 +0000)
tree02ae09c4777c927755c987ca420a91e08314abea
parent3a600fecd0c2127cd5f7c7d343f5c400ad9e6d7b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256989 138bc75d-0d04-0410-961f-82ee72b054a4
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]