From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2299 invoked by alias); 5 Oct 2007 20:06:38 -0000 Received: (qmail 2247 invoked by uid 48); 5 Oct 2007 20:06:27 -0000 Date: Fri, 05 Oct 2007 20:06:00 -0000 Subject: [Bug middle-end/33670] New: cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janis at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00467.txt.bz2 Benchmark twolf in SPEC CPU2000 fails to compile on powerpc64-linux with -O2 -fsched-stalled-insns=[01234] (didn't try other values). The following testcase also fails for powerpc*-*-* and ia64-linux cross cc1: typedef struct binbox { int p; int n; } B; extern B ***binptr; extern int ablock; int foo () { int bin, lobin, hibin; for (bin = lobin; bin <= hibin; bin++) binptr[ablock][bin]->n = binptr[ablock][bin]->p; } with output bug8.c: In function ‘foo’: bug8.c:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. The segfault occurs in sd_lists_size at sched-depc.s:600 with list=0. The failure shows up with this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=127405 r127405 | mkuvyrkov | 2007-08-14 06:40:34 +0000 (Tue, 14 Aug 2007) -- Summary: cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janis at gcc dot gnu dot org GCC target triplet: powerpc*-*-*, ia64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33670