------- 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