------- Comment #18 from pinskia at gcc dot gnu dot org 2006-01-19 06:51 ------- Oh, you are depending on the order of the static/global variables. That is undefined C. Try -O2 -fno-unit-at-a-time. If that works this is NOT, I will repeat NOT a GCC bug as you are depending on undefined code.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25791