re PR lto/78472 (warning: type of 's' does not match original declaration from zero...
authorRichard Biener <rguenther@suse.de>
Wed, 23 Nov 2016 11:24:55 +0000 (11:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 23 Nov 2016 11:24:55 +0000 (11:24 +0000)
commitefb71232412323c504f3af95ed6679abfd15cb7a
treea697ff65416b8a61c02dab5a71350e0bd9eabab7
parenta5bb8a5ceae1bfb0fa82a58254a6539c8943d4b8
re PR lto/78472 (warning: type of 's' does not match original declaration from zero length bitfield in C vs C++)

2016-11-23  Richard Biener  <rguenther@suse.de>

PR lto/78472
* tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
fields.

lto/
* lto.c (hash_canonical_type): Ignore zero-sized fields.

* g++.dg/lto/pr78472_0.c: New testcase.
* g++.dg/lto/pr78472_1.C: Likewise.

From-SVN: r242746
gcc/ChangeLog
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr78472_0.c [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr78472_1.C [new file with mode: 0644]
gcc/tree.c