https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86940
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- How does GCC know that rand does not change the global variable initialize? Or something else before main has changed it from 1 to 0?