Hi. This removes false positive warning when having trailing array at the end of a struct. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin gcc/lto/ChangeLog: 2018-01-23 Martin Liska PR lto/81440 * lto-symtab.c (lto_symtab_merge): Handle and do not warn about trailing arrays at the end of a struct. gcc/testsuite/ChangeLog: 2018-01-23 Martin Liska 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. --- gcc/lto/lto-symtab.c | 25 +++++++++++++++++++------ gcc/testsuite/gcc.dg/lto/pr81440.h | 4 ++++ gcc/testsuite/gcc.dg/lto/pr81440_0.c | 9 +++++++++ gcc/testsuite/gcc.dg/lto/pr81440_1.c | 6 ++++++ 4 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/lto/pr81440.h create mode 100644 gcc/testsuite/gcc.dg/lto/pr81440_0.c create mode 100644 gcc/testsuite/gcc.dg/lto/pr81440_1.c