This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/41589] lto does not eliminate unused variables
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2009 15:16:54 -0000
- Subject: [Bug tree-optimization/41589] lto does not eliminate unused variables
- References: <bug-41589-7834@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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