[Bug target/39232] apparent bizarre miscompilation on AVR
regehr at cs dot utah dot edu
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 03:44:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list