[Bug lto/81440] -Wlto-type-mismatch warning with flexible array in struct
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 23 15:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81440
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Jan 23 15:46:02 2018
New Revision: 256989
URL: https://gcc.gnu.org/viewcvs?rev=256989&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/lto/pr81440.h
trunk/gcc/testsuite/gcc.dg/lto/pr81440_0.c
trunk/gcc/testsuite/gcc.dg/lto/pr81440_1.c
Modified:
trunk/gcc/lto/ChangeLog
trunk/gcc/lto/lto-symtab.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list