------- Comment #3 from regehr at cs dot utah dot edu 2009-02-20 03:44 ------- Created an attachment (id=17335) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17335&action=view) diff between broken and working assembly
This is a diff between the attachment compiled at -O0 and the same program but with the declaration and initialization of l_46 commented out. The first problem (I claim) produces incorrect output, the second correct. So this diff has to show the problem. The change is to turn func_43() to this: int32_t func_43 (int64_t p_44) { int16_t l_45 = 1; //int16_t l_46 = 1; return l_45; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39232