[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #12 from Richard Guenther 2012-07-03 13:17:12 UTC --- Created attachment 27735 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27735 adjusted testcase Certainly valid testcase w/o inline. Fails at -O0 even, added -fno-fat-lto-ob

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #11 from Richard Guenther 2012-07-03 13:11:59 UTC --- (In reply to comment #10) > > if I use -fno-fat-lto-objects I get a maybe more easily to debug linker > > failure > > I guess that's because in this case archive symtab doesn't r

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread tetra2005 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #10 from Yuri Gribov 2012-07-03 12:59:01 UTC --- > if I use -fno-fat-lto-objects I get a maybe more easily to debug linker > failure I guess that's because in this case archive symtab doesn't reference any symbols at all (which is a

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #9 from Richard Guenther 2012-07-03 12:54:07 UTC --- Or your program is invalid because you have no inline definition where you have a use.

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #8 from Richard Guenther 2012-07-03 12:46:36 UTC --- So I think GCC is wrong to optimize away C::f() from impl.cpp and your analysis is correct. It is referenced from the vtable and we output that.

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 Richard Guenther changed: What|Removed |Added CC||rafael.espindola at gmail

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread tetra2005 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #6 from Yuri Gribov 2012-07-03 12:16:21 UTC --- First of all note that we are talking about _ZN1C1fEv (not _ZN1C1gEv!) here. I agree that linker doesn't mention it in the resolution file but I think this happens because it's missing

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #5 from Richard Guenther 2012-07-03 10:59:57 UTC --- (In reply to comment #4) > (In reply to comment #3) > > I don't think linker can do much after gcc removes the symbol from symtab. > > I belive the contract between the linker and

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #4 from Richard Guenther 2012-07-03 10:52:42 UTC --- (In reply to comment #3) > I don't think linker can do much after gcc removes the symbol from symtab. I belive the contract between the linker and GCC is that GCC can introduce new

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread tetra2005 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #3 from Yuri Gribov 2012-07-03 10:45:09 UTC --- I don't think linker can do much after gcc removes the symbol from symtab. BTW it would help a lot if linker verified that LTO and ELF symtabs actually match. Currently mismatches cause

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 Richard Guenther changed: What|Removed |Added Target|arm-linux-androideabi |arm-linux-androideabi,

[Bug lto/53831] Inline virtuals missing in LTO symtab

2012-07-02 Thread tetra2005 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831 --- Comment #1 from Yuri Gribov 2012-07-02 19:52:16 UTC --- Created attachment 27731 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27731 Small project which demonstrates the bug