Incorrect code from EGCS-1.1 on PowerPC

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Tue Aug 18 14:59:00 GMT 1998


Am Tue, 18 Aug 1998 schrieb Gary Thomas:
>>The attached code snippet (from the Linux kernel) generates incorrect
>code when compiled on Linux/PPC with "-O2" options.
>
>The problem stems from inlined functions and a pointer (skb) being
>dereferenced (skb->sb) before it is tested for NULL as a result of 
>the loop being reorganized.

I verified the bug with a cvs checkout 1845UTC 19980818. -fno-schedule-insns
makes the bug go away.

Franz.



More information about the Gcc-bugs mailing list