From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23685 invoked by alias); 28 Oct 2004 13:19:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23662 invoked by alias); 28 Oct 2004 13:19:04 -0000 Date: Thu, 28 Oct 2004 13:19:00 -0000 Message-ID: <20041028131904.23661.qmail@sourceware.org> From: "rakdver at atrey dot karlin dot mff dot cuni dot cz" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040912034129.17428.opticcow@linux-militia.net> References: <20040912034129.17428.opticcow@linux-militia.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/17428] [4.0 Regression] internal compiler error: in spill_failure, at reload1.c:1880 X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg03472.txt.bz2 List-Id: ------- 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