------- Comment #5 from rguenth at gcc dot gnu dot org 2009-02-25 11:21 ------- Optimizing dead local static variables requires special handling which probably is not thought to be worth the trouble. If the variable is unused the programmer can as well remove it.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39298