[tree-ssa] Bootstrap failure

Steven Bosscher s.bosscher@student.tudelft.nl
Tue Jul 29 11:37:00 GMT 2003


Something in the last 12 hours broke bootstrap with checking enabled for
the tree-ssa branch (last updated 06:22:22 UTC 2003) on i686-pc-linux-gnu:

/home/steven/devel/ssabuild/gcc/xgcc -B/home/steven/devel/ssabuild/gcc/ -B/opt/experimental//i686-pc-linux-gnu/bin/ -B/opt/experimental//i686-pc-linux-gnu/lib/ -isystem /opt/experimental//i686-pc-linux-gnu/include -isystem /opt/experimental//i686-pc-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I../../tree-ssa/gcc -I../../tree-ssa/gcc/. -I../../tree-ssa/gcc/config -I../../tree-ssa/gcc/../include -I../../tree-ssa/gcc/../libbanshee/libcompat -I../../tree-ssa/gcc/../libbanshee -I../../tree-ssa/gcc/../libbanshee/points-to  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
   -c ../../tree-ssa/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
/usr/include/bits/string2.h: In function `__strcspn_c1':
/usr/include/bits/string2.h:926: internal compiler error: in var_ann, at tree-flow-inline.h:36
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/steven/devel/ssabuild/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/steven/devel/ssabuild/gcc'
make: *** [bootstrap] Error 2


#1  0x08104a0d in var_ann (t=0x0) at tree-flow-inline.h:36
36          abort ();
(gdb) l
31      #if defined ENABLE_CHECKING
32        if (t == NULL_TREE
33            || !DECL_P (t)
34            || (t->common.ann
35                && t->common.ann->common.type != VAR_ANN))
36          abort ();
37      #endif
38
39        return (var_ann_t) t->common.ann;
40      }
(gdb) p t
$2 = 0x0
(gdb) where
#0  fancy_abort (file=0x8512ba0 "../../tree-ssa/gcc/tree-flow-inline.h",
    line=36, function=0x8512b86 "var_ann")
    at ../../tree-ssa/gcc/diagnostic.c:1380
#1  0x08104a0d in var_ann (t=0x0) at tree-flow-inline.h:36
#2  0x0810400a in set_is_used (t=0x0) at ../../tree-ssa/gcc/tree-ssa.c:2124
#3  0x08100053 in insert_copy_on_edge (e=0x87628dc, dest=0x40217f50,
    src=0x40218f6c) at ../../tree-ssa/gcc/tree-ssa.c:881
#4  0x08101123 in eliminate_phi (e=0x87628dc, i=0, g=0x875f980)
    at ../../tree-ssa/gcc/tree-ssa.c:1173
#5  0x081025cf in rewrite_out_of_ssa (fndecl=0x40217c40)
    at ../../tree-ssa/gcc/tree-ssa.c:1711

We lose the tree pointer in tree_simple:get_base_symbol (tree t) when it is
called from set_is_used ().  get_base_symbol() expects a decl, a ref or an ssa
name, but we call it with an INTEGER_CST.

Probably fallout from the "constant propatation into PHIs"-patches??

Gr.
Steven



More information about the Gcc mailing list