http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57366
--- Comment #10 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #9 from Jan Hubicka <hubicka at ucw dot cz> --- > Hi, > the following patch sets IDENTIFIER_TRANSPARENT_ALIAS correctly from > lto-symtab > (correct fix should do the same for variable aliases, too). Now the testcase > compiles for > me on Linux with weakref disabled. Does it work for you? It does and is a considerable improvement: it fixes -FAIL: g++.dg/lto/20091219 cp_lto_20091219_0.o-cp_lto_20091219_0.o link, -O3 -fl to (internal compiler error) -UNRESOLVED: g++.dg/lto/20091219 cp_lto_20091219_0.o-cp_lto_20091219_0.o execute -O3 -flto i.e. PR lto/47333 and several of the failures from this PR, but not all of them: UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakr ef-1_2.o execute -O2 -flto -flto-partition=none FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2 .o link, -O0 -flto -flto-partition=1to1 (internal compiler error) UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakr ef-1_2.o execute -O0 -flto -flto-partition=1to1 -FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2 .o link, -O2 -flto -flto-partition=1to1 -UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakr ef-1_2.o execute -O2 -flto -flto-partition=1to1 -FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2 .o link, -O0 -flto -UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakr ef-1_2.o execute -O0 -flto -FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2 .o link, -O2 -flto -UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakr ef-1_2.o execute -O2 -flto i.e. those failures remain: FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2.o link, -O0 -flto -flto-partition=none UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2.o execute -O0 -flto -flto-partition=none FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2.o link, -O2 -flto -flto-partition=none UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2.o execute -O2 -flto -flto-partition=none FAIL: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2.o link, -O0 -flto -flto-partition=1to1 (internal compiler error) UNRESOLVED: gcc.dg/lto/attr-weakref-1 c_lto_attr-weakref-1_0.o-c_lto_attr-weakref-1_2.o execute -O0 -flto -flto-partition=1to1 Btw., the patch has a few formatting issues: indentation and line length. Thanks. Rainer