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



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
------------------------------------------------------------------------




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