public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/33670]  New: cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf
@ 2007-10-05 20:06 janis at gcc dot gnu dot org
  2007-10-05 20:31 ` [Bug middle-end/33670] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-10-05 20:06 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-11-06 23:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-05 20:06 [Bug middle-end/33670] New: cc1 segfault with -O2 -fsched-stalled-insns=0 for twolf janis at gcc dot gnu dot org
2007-10-05 20:31 ` [Bug middle-end/33670] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-10-10 18:13 ` mmitchel at gcc dot gnu dot org
2007-11-02 13:10 ` jakub at gcc dot gnu dot org
2007-11-02 23:07 ` jakub at gcc dot gnu dot org
2007-11-02 23:17 ` jakub at gcc dot gnu dot org
2007-11-03  7:45 ` maxim at codesourcery dot com
2007-11-05 16:09 ` jakub at gcc dot gnu dot org
2007-11-06 23:21 ` jakub at gcc dot gnu dot org
2007-11-06 23:22 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).