BOOTSTRAP FAIL in loop.c on powerpc-unknown-linux-gnu

Franz Sirl
Fri Oct 9 05:34:00 GMT 1998


the current mainline won't bootstrap on powerpc-unknown-linux-gnu,
compilation fails in stage1/libgcc2/_bb. Here's the output of the gdb
session, it probably segfaults because of loop_iteration_var is 0.

BTW, on the current egcs_1_1_branch I get test regressions for
libio/ with -b0 and -b2. Is this anything I should investigate
at the moment?


[fsirl@kernel:~/obj/cvsm/gcc]$ gdb ./cc1
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ppc-redhat-linux"...
.gdbinit:8: Error in sourced command file:
../../../egcsm/gcc/.gdbinit:91: Error in sourced command file:
Function "abort" not defined.
(gdb) set args libgcc2.i -g -g1 -O2 -W -Wall -version -fPIC
(gdb) r
Starting program: /home/fsirl/obj/cvsm/gcc/./cc1 libgcc2.i -g -g1 -O2 -W
-Wall -version -fPIC
GNU C version egcs-2.92.14 19981009 (gcc2 ss-980609 experimental)
(powerpc-unknown-linux-gnu) compiled by GNU C version egcs-2.91.57 19980901
(egcs-1.1 release).
options passed:  -g -g1 -O2 -W -Wall -fPIC
options enabled:  -fdefer-pop -fomit-frame-pointer -fcse-follow-jumps
 -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
 -fstrength-reduce -fpeephole -fforce-mem -ffunction-cse -finline
 -fkeep-static-consts -fcaller-saves -fpcc-struct-return -fgcse
 -frerun-cse-after-loop -frerun-loop-opt -fschedule-insns -fschedule-insns2
 -fsched-interblock -fsched-spec -fbranch-count-reg -fPIC -fsjlj-exceptions
 -fcommon -fgnu-linker -fregmove -foptimize-register-move -fargument-alias
 -fstrict-aliasing -mpowerpc -mnew-mnemonics -mno-fp-in-toc -mminimal-toc
 -mrelocatable -mrelocatable-lib -mtoc -mfull-toc -mcall-sysv -msdata=data
 strtod strtol strtoul strtoq strtouq strtoll strtoull atof atoi atol atoll
vprintf getchar getc_unlocked getchar_unlocked putchar fputc_unlocked
putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked __store_long
../../../egcsm/gcc/gcov-io.h: In function `__fetch_long':
In file included from ../../../egcsm/gcc/libgcc2.c:1452:
../../../egcsm/gcc/gcov-io.h:82: warning: comparison between signed and
 __write_long __read_long __strcpy_small __strcspn_c1 __strcspn_c2
__strcspn_c3 __strspn_c1 __strspn_c2 __strspn_c3 __strpbrk_c2 __strpbrk_c3
__strtok_r_1c __strsep_1c __strsep_2c __strsep_3c __strsep_g num_digits
Program received signal SIGSEGV, Segmentation fault.
0x19730e8 in insert_bct (loop_start=0x1c6e3d8, loop_end=0x1c6e6d0) at
8057      if (GET_MODE_CLASS (GET_MODE (loop_iteration_var)) != MODE_INT
(gdb) bt
#0  0x19730e8 in insert_bct (loop_start=0x1c6e3d8, loop_end=0x1c6e6d0) at
#1  0x1969af0 in strength_reduce (scan_start=0x1c6e398, end=0x1c6e6d0,
loop_top=0x0, insn_count=4, loop_start=0x1c6e3d8, 
    loop_end=0x1c6e6d0, unroll_p=0, bct_p=1) at ../../../egcsm/gcc/loop.c:4565
#2  0x19611cc in scan_loop (loop_start=0x1c6e3d8, end=0x1c6e6d0,
unroll_p=0, bct_p=1) at ../../../egcsm/gcc/loop.c:1165
#3  0x195f60c in loop_optimize (f=0x1c71490, dumpfile=0x0, unroll_p=0,
bct_p=1) at ../../../egcsm/gcc/loop.c:557
#4  0x183cc70 in rest_of_compilation (decl=0x1c6c480) at
#5  0x181c0c4 in finish_function (nested=0) at ../../../egcsm/gcc/c-decl.c:7189
#6  0x1801ad8 in yyparse () at c-parse.y:313
#7  0x183ada4 in compile_file (name=0x7ffffdf3 "libgcc2.i") at
#8  0x1840144 in main (argc=9, argv=0x7ffffcd4) at
#9  0x16d47d4 in __libc_start_main () at
(gdb) print loop_iteration_var
$1 = 0x0

More information about the Gcc-bugs mailing list