This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

3.1 1024 ICE in alloc_aux_for_edge, at cfg.c:649 compiling cp/decl2.c onhppa2.0-hp-hpux10.20


Building to stage1 needed the default_eh_frame_section patch and
an updated config.guess.

stage1/xgcc -v -save-temps -Bstage1/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -c   -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes   -DHAVE_CONFIG_H   -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/config -I../../gcc/gcc/../include
../../gcc/gcc/cp/decl2.c -o cp/decl2.o
Reading specs from stage1/specs
Configured with: ../gcc/configure --with-gnu-as --with-as=/usr/local/bin/as
Thread model: single
gcc version 3.1 20011024 (experimental)
 stage1/cpp0 -lang-c -v -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/config -I../../gcc/gcc/../include -iprefix
stage1/../lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/ -isystem include -isystem stage1/include -isystem /usr/local/hppa2.0-hp-hpux10.20/bin/include
-D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__
-D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem=unix -Asystem=hpux
-Acpu=hppa -Amachine=hppa -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -D_PA_RISC1_1
-D__hp9000s700 -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__ -DIN_GCC -DHAVE_CONFIG_H ../../gcc/gcc/cp/decl2.c decl2.i
ignoring nonexistent directory "stage1/include"
ignoring nonexistent directory "/usr/local/hppa2.0-hp-hpux10.20/bin/include"
GNU CPP version 3.1 20011024 (experimental) (cpplib) (hppa)
ignoring nonexistent directory "lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/include"
ignoring nonexistent directory "lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/../../../../hppa2.0-hp-hpux10.20/include"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.1/../../../../hppa2.0-hp-hpux10.20/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 cp
 ../../gcc/gcc
 ../../gcc/gcc/cp
 ../../gcc/gcc/config
 ../../gcc/include
 include
 /usr/local/include
 /usr/include
End of search list.
 stage1/cc1 -fpreprocessed decl2.i -quiet -dumpbase decl2.c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -version -o
decl2.s
GNU CPP version 3.1 20011024 (experimental) (cpplib) (hppa)
GNU C version 3.1 20011024 (experimental) (hppa2.0-hp-hpux10.20)
     compiled by GNU C version 2.95.2 19991024 (release).
../../gcc/gcc/cp/decl2.c: In function `decl_namespace':
../../gcc/gcc/cp/decl2.c:4397: Internal compiler error in alloc_aux_for_edge, at cfg.c:649
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
bash-2.02$ ../../gdb-4.95.1.obj/gdb/gdb stage1/cc1
../../gdb-4.95.1.obj/gdb/gdb stage1/cc1
GNU gdb 4.95.1
Copyright 2000 Free Software Foundation, Inc.
...
This GDB was configured as "hppa2.0-hp-hpux10.20"...
Breakpoint 1 at 0x101a24: file ../../gcc/gcc/diagnostic.c, line 1450.
Breakpoint 2 at 0x467558: file obstack.c, line 450.
Breakpoint 3 at 0x467298: file obstack.c, line 362.
(gdb) r `cat ../tmp.rdb2.2`
Starting program: /devel/span/rdb/src/gcc-3.1-experimental/gcc/stage1/cc1 `cat ../tmp.rdb2.2`
Breakpoint 2 at 0x7af4bd5c
Breakpoint 3 at 0x7af42a78
GNU CPP version 3.1 20011024 (experimental) (cpplib) (hppa)
GNU C version 3.1 20011024 (experimental) (hppa2.0-hp-hpux10.20)
     compiled by GNU C version 2.95.2 19991024 (release).

Breakpoint 1, fancy_abort (file=0x3c000 "../../gcc/gcc/cfg.c", line=649,
    function=0x3c320 "alloc_aux_for_edge") at ../../gcc/gcc/diagnostic.c:1450
1450 internal_error ("Internal compiler error in %s, at %s:%d",
(gdb) bt
#0  fancy_abort (file=0x3c000 "../../gcc/gcc/cfg.c", line=649,
    function=0x3c320 "alloc_aux_for_edge") at ../../gcc/gcc/diagnostic.c:1450
#1  0x425498 in alloc_aux_for_edge (e=0x400b9a98, size=16)
    at ../../gcc/gcc/cfg.c:649
#2  0x425874 in alloc_aux_for_edges (size=16) at ../../gcc/gcc/cfg.c:685
#3  0x3879e4 in estimate_bb_frequencies (loops=0x7b03b600)
    at ../../gcc/gcc/predict.c:892
#4  0x386510 in estimate_probability (loops_info=0x7b03b600)
    at ../../gcc/gcc/predict.c:521
#5  0x1e7794 in rest_of_compilation (decl=0x7a975b40)
    at ../../gcc/gcc/toplev.c:3264
#6  0x78fe4 in c_expand_body (fndecl=0x7a975b40, nested_p=0)
    at ../../gcc/gcc/c-decl.c:6888
#7  0x78a84 in finish_function (nested=0) at ../../gcc/gcc/c-decl.c:6787
#8  0x429a4 in yyparse_1 () at c-parse.y:357
#9  0x54c58 in yyparse () at ../../gcc/gcc/c-lex.c:166
#10 0x1e50fc in compile_file (name=0x4007cb28 "decl2.i")
    at ../../gcc/gcc/toplev.c:2333
#11 0x1ebe24 in toplev_main (argc=16, argv=0x7b03a2cc)
    at ../../gcc/gcc/toplev.c:4948
#12 0xe4fd0 in main (argc=16, argv=0x7b03a2cc) at ../../gcc/gcc/main.c:35
#13 0x7af1c424 in ?? () from /usr/lib/libc.1
(gdb) up 1
#1  0x425498 in alloc_aux_for_edge (e=0x400b9a98, size=16)
    at ../../gcc/gcc/cfg.c:649
649   abort ();
(gdb) l
644    edge e;
645    int size;
646  {
647  /* Verify that aux field is clear.  */
648  if (e->aux || !first_edge_aux_obj)
649   abort ();
650  e->aux = obstack_alloc (&edge_aux_obstack, size);
651  memset (e->aux, 0, size);
652  }
653
(gdb) p *e
$1 = {pred_next = 0x400b9d90, succ_next = 0x0, src = 0x400b93c8,
  dest = 0x400b9410, insns = 0x0, aux = 0x1, flags = 0, probability = 10000,
  count = 0}
(gdb) p first_edge_aux_obj
$2 = (void *) 0x400bdaa0
(gdb) up 1
#2  0x425874 in alloc_aux_for_edges (size=16) at ../../gcc/gcc/cfg.c:685
685        alloc_aux_for_edge (e, size);
(gdb) l
680       if (i >= 0)
681        bb = BASIC_BLOCK (i);
682       else
683        bb = ENTRY_BLOCK_PTR;
684       for (e = bb->succ; e; e = e->succ_next)
685        alloc_aux_for_edge (e, size);
686       }
687   }
688  }
689
(gdb) p *bb
$3 = {head = 0x7a81cda0, end = 0x7a834e00, head_tree = 0x0, end_tree = 0x0,
  pred = 0x400b9a20, succ = 0x400b9a98, local_set = 0x0, cond_local_set = 0x0,
  global_live_at_start = 0x0, global_live_at_end = 0x0, aux = 0x400bcac8,
  index = 1, loop_depth = 0, count = 0, frequency = 0, flags = 1}
(gdb) ptype bb
type = struct basic_block_def {
    rtx head;
    rtx end;
    tree head_tree;
    tree end_tree;
    edge pred;
    edge succ;
    regset local_set;
    regset cond_local_set;
    regset global_live_at_start;
    regset global_live_at_end;
    void *aux;
    int index;
    int loop_depth;
    gcov_type count;
    int frequency;
    int flags;
} *
(gdb) p *bb->succ
$4 = {pred_next = 0x400b9d90, succ_next = 0x0, src = 0x400b93c8,
  dest = 0x400b9410, insns = 0x0, aux = 0x1, flags = 0, probability = 10000,
  count = 0}
(gdb) ptype edge
type = struct edge_def {
    struct edge_def *pred_next;
    struct edge_def *succ_next;
    struct basic_block_def *src;
    struct basic_block_def *dest;
    rtx insns;
    void *aux;
    int flags;
    int probability;
    gcov_type count;
} *
(gdb) p *bb->succ->src
$5 = {head = 0x7a81cda0, end = 0x7a834e00, head_tree = 0x0, end_tree = 0x0,
  pred = 0x400b9a20, succ = 0x400b9a98, local_set = 0x0, cond_local_set = 0x0,
  global_live_at_start = 0x0, global_live_at_end = 0x0, aux = 0x400bcac8,
  index = 1, loop_depth = 0, count = 0, frequency = 0, flags = 1}
(gdb) pr *bb->succ->src->head
(note 195 23 25 [bb 1] NOTE_INSN_BASIC_BLOCK)
(gdb)  pr *bb->succ->src->end

(note 195 23 25 [bb 1] NOTE_INSN_BASIC_BLOCK)
(gdb) pr*bb->succ->dest
$6 = {head = 0x7a834380, end = 0x7a834500, head_tree = 0x0, end_tree = 0x0,
  pred = 0x400b9a98, succ = 0x400b9c00, local_set = 0x0, cond_local_set = 0x0,
  global_live_at_start = 0x0, global_live_at_end = 0x0, aux = 0x400bcb70,
  index = 8, loop_depth = 0, count = 0, frequency = 0, flags = 1}
(gdb) pr *bb->succ->dest->head

(code_label 26 166 196 2899 "" "" [2 uses])
(gdb) pr *bb->succ->dest->end

(code_label 26 166 196 2899 "" "" [2 uses])
(gdb) c
Continuing.
../../gcc/gcc/cp/decl2.c: In function `decl_namespace':
../../gcc/gcc/cp/decl2.c:4397: Internal compiler error in alloc_aux_for_edge, at cfg.c:649
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Breakpoint 2, 0x7af4bd5c in ?? () from /usr/lib/libc.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]