http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43411
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |hubicka at gcc dot gnu.org,
| |mjambor at suse dot cz
Resolution| |FIXED
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-11-10
17:43:15 UTC ---
Mainline now produces:
_Z4testv:
.LFB1:
movl $123, sink1(%rip)
movl $123, sink2(%rip)
ret
_Z11testInlinePv:
.LFB9:
movl $123, sink1(%rip)
ret
_Z14testInlinePsubv:
.LFB10:
movl $123, sink1(%rip)
ret
.LFE10:
So the bug seems to be fixed either by Martin's devirtualization work or by
mine folding patches. I will check in the testcase to be sure we don't break
it again with the fixes Martin plans.