Make Wodr warnings stable.
authorMartin Liska <mliska@suse.cz>
Wed, 18 Apr 2018 20:08:44 +0000 (22:08 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 18 Apr 2018 20:08:44 +0000 (20:08 +0000)
commitaf5975362b21c2a1268aac5b02545de482a2cc7c
tree0cf3eaf62eae18fa7fecb4e5c9bc4e81c28ea5a5
parent3c674e3e41e8b983161b3af788f1ab09e163808d
Make Wodr warnings stable.

2018-04-18  Martin Liska  <mliska@suse.cz>

PR ipa/83983
PR ipa/85391
* lto.c (cmp_type_location): New function.
(lto_read_decls): First collect all types, then
sort them according by location before register_odr_type
is called.
2018-04-18  Martin Liska  <mliska@suse.cz>

PR ipa/83983
PR ipa/85391
* g++.dg/lto/pr83121_1.C (struct Environment): Adjust expected
output.

From-SVN: r259479
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr83121_1.C