This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect code from EGCS-1.1 on PowerPC
- To: Gary Thomas <gdt at linuxppc dot org>
- Subject: Re: Incorrect code from EGCS-1.1 on PowerPC
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Tue, 18 Aug 1998 23:56:25 +0200
- Cc: egcs-bugs at cygnus dot com
- References: <XFMail.980818151402.gdt@linuxppc.org>
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.