------- Additional Comments From rakdver at atrey dot karlin dot mff dot cuni dot cz  
2004-10-28 13:18 -------
Subject: Re:  [4.0 Regression] internal compiler error: in spill_failure, at 
reload1.c:1880

Hello,

> Because of the patch http://gcc.gnu.org/ml/gcc-cvs/2004-10/msg01513.html
> that adds "-funroll-loops" to "-fprofile-generate" the testcase from
> comment #4 has to be compiled with
> "-msse -O2 -fspeculative-prefetching -fprofile-generate -fno-unroll-loops"
> to still trigger the bug. Alternatively one can increase the number of
> iterations of the loop from 2 to 20.
> 
> The bug finally disappeared with Zdenek's patch
> http://gcc.gnu.org/ml/gcc-cvs/2004-10/msg01561.html
> which seems to address Andrew's suggestion from comment #5.
> 
> Zdenek, is this a real fix or is this just papering over the problem?

no, that patch cannot fix the problem; so it is just masked, and ...

> I.e. is your patch from comment #9 still needed or not?

... this patch is still needed.

Zdenek

> 
> Alas, the original testcase still segfaults with mainline. Here's a testcase:
> 
> ==============================================================
> int foo(int, int) __attribute__((pure));
> 
> void bar()
> {
>     int i;
> 
>     if (foo(0,0))
>         for (i = 0; i < 2; i++)
>             ;
> }
> ==============================================================
> 
> Compile with "-O -march=pentium4 -fprofile-generate -fspeculative-prefetching
> -funroll-loops"
> to trigger the bug.
> 
> Phils's regression tester about this bug:
> : Search converges between 2004-10-01-014001-trunk (#570) and
> 2004-10-01-161002-trunk (#571).
> 
> 
> -- 
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17428
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17428

Reply via email to