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: law at cygnus dot com
- Subject: Re: Incorrect code from EGCS-1.1 on PowerPC
- From: Gary Thomas <gdt at linuxppc dot org>
- Date: Fri, 21 Aug 1998 15:05:56 +0200 (MEST)
- Cc: Michal Jaegermann <michal at ellpspace dot math dot ualberta dot ca>, egcs-bugs at cygnus dot com
On 20-Aug-98 Jeffrey A Law wrote:
>
> In message <XFMail.980818151402.gdt@linuxppc.org>you write:
> > This message is in MIME format
> > --_=XFMail.1.3.p0.Linux:980818151357:722=_
> > Content-Type: text/plain; charset=us-ascii
> >
> > 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 just looked at the debugging dumps for this one. It was definitely
> the haifa-sched.c change that fixed this problem. Amazing. I wonder
> if this is the same problem that Michal has been having (he's seeing
> problems in tcp_close_pending, but on the Alpha).
>
> If I had known this particular bug in haifa was causing these problems
> I would have encouraged Catherine to nail it down quicker. The good
> news is we do have a testcase for this bug in the testsuite (980506-1.c)
>
I built from CVS yesterday (20.08.98) and used this compiler to build
the Linux kernel 2.0.32 which seems to work fine. The problem I reorted
is now fixed.
------------------------------------------------------------------------
Gary Thomas |
email: gdt@linuxppc.org | "Fine wine is a necessity of
... opinions expressed here are mine | life for me"
and no one else would claim them! |
| Thomas Jefferson
------------------------------------------------------------------------