This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Incorrect code from EGCS-1.1 on PowerPC


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]