--- Comment #8 from hubicka at gcc dot gnu dot org 2009-11-12 13:23 ---
There are some bugs on LTO and unused vars elimination, but in this testcase we
end up with:
main:
.LFB2:
subq$8, %rsp
.LCFI0:
movly(%rip), %esi
movl$.LC0, %edi
xorl
--- Comment #7 from pinskia at gcc dot gnu dot org 2009-10-05 17:07 ---
(In reply to comment #6)
> I use binutils 2.19 (from opensuse 11.1).
What I meant was that -ffunction-sections -fdata-sections and then
-Wl,--gc-sections to remove the unused variables/functions.
--
http://gcc.
--- Comment #6 from andi-gcc at firstfloor dot org 2009-10-05 15:42 ---
I use binutils 2.19 (from opensuse 11.1).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41589
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-10-05 15:16 ---
I think this optimization is up to the linker as the variables are marked as
hidden and not marked as local to the Translational unit.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41589
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-10-05 14:20 ---
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
CC|