This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
20000117 ICE compiling gcc/fold-const.c on rs6000-ibm-aix4.2.0.0
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 20000117 ICE compiling gcc/fold-const.c on rs6000-ibm-aix4.2.0.0
- From: Rodney Brown <rdb at localhost>
- Date: Thu, 20 Jan 2000 08:32:46 +1100
rs6000-ibm-aix4.2.0.0
stage1/xgcc -Bstage1/ -B/usr/local/rs6000-ibm-aix4.2.0.0/bin/ -c -DIN_GCC -W -Wall -Wtraditional -O2 -g -O2 -DHAVE_CONFIG_H -I. -I../../egcs-20000117/gcc -I../../egcs-20000117/gcc/config -I../../egcs-20000117/gcc/../include ../../egcs-20000117/gcc/fold-const.c
../../egcs-20000117/gcc/fold-const.c: In function /devel/tmp/egcs-20000117.obj/gcc'
stage1/cc1 fold-const.i -quiet -dumpbase fold-const.c -g -O2 -O2 -W -Wall -Wtraditional -version -o fold-const.s
GNU C version 2.96 20000117 (experimental) (rs6000-ibm-aix4.2.0.0) compiled by GNU C version 2.95.2 19991024 (release).
../../egcs-20000117/gcc/fold-const.c: In function add_double':
../../egcs-20000117/gcc/fold-const.c:254: warning: comparison between signed and unsigned
Program received signal SIGSEGV, Segmentation fault.
0x1021b20c in insert_bct (loop=0x200713dc)
at ../../egcs-20000117/gcc/loop.c:9367
9367 outer_loop_info->used_count_register = 1;
#0 0x1021b20c in insert_bct (loop=0x200713dc)
at ../../egcs-20000117/gcc/loop.c:9367
#1 0x1021036c in strength_reduce (loop=0x200713dc, insn_count=14, unroll_p=0,
bct_p=1) at ../../egcs-20000117/gcc/loop.c:5263
#2 0x10205ac4 in scan_loop (loop=0x200713dc, unroll_p=0, bct_p=1)
at ../../egcs-20000117/gcc/loop.c:1125
#3 0x10204004 in loop_optimize (f=0x30a8c800, dumpfile=0x0, unroll_p=0,
bct_p=1) at ../../egcs-20000117/gcc/loop.c:520
#4 0x10004278 in rest_of_compilation (decl=0x30608500)
at ../../egcs-20000117/gcc/toplev.c:3117
#5 0x1001cf2c in finish_function (nested=0)
at ../../egcs-20000117/gcc/c-decl.c:6718
#6 0x101ddfe0 in yyparse () at ../../egcs-20000117/gcc/c-parse.c:65534
#7 0x1000283c in compile_file (name=0x30054130 "fold-const.i")
at ../../egcs-20000117/gcc/toplev.c:2380
#8 0x10008058 in main (argc=14, argv=0x2ff22c6c)
at ../../egcs-20000117/gcc/toplev.c:4795
#9 0x100001c8 in __start ()
9362
9363 /* Mark all enclosing loops that they cannot use count register. */
9364 for (outer_loop = loop; outer_loop; outer_loop = outer_loop->outer)
9365 {
9366 outer_loop_info = outer_loop->info;
9367 outer_loop_info->used_count_register = 1;
9368 }
9369 instrument_loop_bct (loop_start, loop_end, GEN_INT (n_iterations));
9370 return;
9371 }
(gdb) ptype outer_loop_info
type = struct loop_info {
...
} *
(gdb) p outer_loop_info
= (struct loop_info *) 0x0
(gdb) ptype outer_loop
type = struct loop {
...
} *
(gdb) p *outer_loop
= {num = 0, header = 0x0, latch = 0x0, pre_header = 0x0, nodes = 0x0,
num_nodes = 0, exits = 0x0, num_exits = 0, depth = 0, level = 0,
outer = 0x0, inner = 0x0, next = 0x0, shared = 0, invalid = 0, info = 0x0,
vtop = 0x0, cont = 0x30aa89c0, cont_dominator = 0x30a747c0,
start = 0x30a9cba0, end = 0x30aa8a20, top = 0x0, scan_start = 0x0,
exit_labels = 0x0, exit_count = 0}