------- Comment #7 from abnikant at gmail dot com 2010-03-08 05:22 ------- (In reply to comment #6) > An observation - the same file when compiled with -O1 for i386 target also > appears to load g_54 using movl instruction. > > _func_45: > ... > L11: > testw %bx, %bx > je L7 > movl _g_54, %eax > L7: > movl $1, 4(%esp) > >
It loads g_54 conditionally with gcc-4.4.0 and higher version in -O1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39223