Re: [PATCH] Fix PR87906

2018-11-08 Thread Rainer Orth
Hi Richard, >>the new testcase FAILs on Solaris: >> >>+FAIL: g++.dg/lto/pr87906 cp_lto_pr87906_0.o assemble, -O -fPIC -flto >>+UNRESOLVED: g++.dg/lto/pr87906 cp_lto_pr87906_0.o-cp_lto_pr87906_1.o >>execute -O -fPIC -flto >>+UNRESOLVED: g++.dg/lto/pr87906 cp_lto_pr87906_0.o-cp_lto_pr87906_1.o >

Re: [PATCH] Fix PR87906

2018-11-07 Thread Richard Biener
On November 7, 2018 7:47:43 PM GMT+01:00, Rainer Orth wrote: >Hi Richard, > >> This adds a workaround for LTO decl merging prevailing a >> non-ultimate origin decl, breaking invariants of the middle-end. >> In the future (GCC 10) I hope to have DIE references here so >> this will not be an issue

Re: [PATCH] Fix PR87906

2018-11-07 Thread Rainer Orth
Hi Richard, > This adds a workaround for LTO decl merging prevailing a > non-ultimate origin decl, breaking invariants of the middle-end. > In the future (GCC 10) I hope to have DIE references here so > this will not be an issue there anymore. > > Bootstrapped and tested on x86_64-unknown-linux-gn