This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/64146] [5 Regression] ipa-icf breaks gold dynamic_test_2 test
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Dec 2014 16:11:27 +0000
- Subject: [Bug ipa/64146] [5 Regression] ipa-icf breaks gold dynamic_test_2 test
- Auto-submitted: auto-generated
- References: <bug-64146-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64146
--- Comment #4 from Martin LiÅka <marxin at gcc dot gnu.org> ---
Hello.
Test case you described should be covered by IPA ICF, where we create a
non-interposable alias of a original symbol that is target of newly created
thunk.
There's -fpic snippet:
_Z8test_barv:
.LFB3:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
call bar@PLT
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE3:
.size _Z8test_barv, .-_Z8test_barv
.set _Z8test_barv.localalias.0,_Z8test_barv
.ident "GCC: (GNU) 5.0.0 20141209 (experimental)"
.section .note.GNU-stack,"",@progbits
But it's probably not enough, what exactly means binds_local_p ?
Thanks,
Martin