Make Wodr warnings stable.
commitb9308baf5650340b2ca1abb4d68ef7a9e02bacf9
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Apr 2018 20:08:44 +0000 (18 20:08 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Apr 2018 20:08:44 +0000 (18 20:08 +0000)
tree0cf3eaf62eae18fa7fecb4e5c9bc4e81c28ea5a5
parentbb8284536c2db028c558bcd4a993d676ac6dc472
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259479 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr83121_1.C