This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33670] New: cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2007 20:06:27 -0000
- Subject: [Bug middle-end/33670] New: cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 <http://gcc.gnu.org/bugs.html> 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