This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-2.93.03 19990128 - genextract dumps core
- To: egcs-bugs at hiauly1 dot hia dot nrc dot ca
- Subject: egcs-2.93.03 19990128 - genextract dumps core
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 29 Jan 1999 10:05:17 -0500 (EST)
During make bootstrap, genextract dumps core:
stage1/xgcc -Bstage1/ -B/usr/local/hppa1.1-hp-hpux9.01/bin/ -DIN_GCC -DHAIFA -W -Wall -O2 -g -O3 -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -c insn-recog.c
insn-recog.c: In function `recog_3':
insn-recog.c:1439: warning: value computed is not used
insn-recog.c: In function `split_insns':
insn-recog.c:7348: warning: unused variable `ro'
stage1/xgcc -Bstage1/ -B/usr/local/hppa1.1-hp-hpux9.01/bin/ -c -DIN_GCC -DHAIFA -W -Wall -O2 -g -O3 -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/../include ../../gcc/genextract.c
stage1/xgcc -Bstage1/ -B/usr/local/hppa1.1-hp-hpux9.01/bin/ -DIN_GCC -DHAIFA -W -Wall -O2 -g -O3 -DHAVE_CONFIG_H -o genextract \
genextract.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
./genextract ../../gcc/config/pa/pa.md > tmp-extract.c
/bin/sh: 7292 Memory fault - core dumped
make[2]: *** [s-extract] Error 139
make[2]: Leaving directory `/xxx/gnu/egcs-2.93.03/objdir/gcc'
Here is some info about the problem in genextract:
gdb -c core genextract
...
Reading symbols from ./genextract...done.
Reading symbols from /lib/libc.sl...done.
#0 0x3964 in gen_insn (insn=0x400105b0) at ../../gcc/genextract.c:182
182 p->dupnums[i] = dupnums[i], p->duplocs[i] = duplocs[i];
Breakpoint 1 at 0x8008ee94
Breakpoint 2 at 0x8008f154
Breakpoint 3 at 0x481c: file ../../gcc/genextract.c, line 400.
(gdb) bt
#0 0x3964 in gen_insn (insn=0x400105b0) at ../../gcc/genextract.c:182
#1 0x453c in main (argc=1073749104, argv=0x7b034eb8)
at ../../gcc/genextract.c:496
(gdb) disass gen_insn
...
0x395c <gen_insn+620>: ldws,ma 4(sr0,r21),r19
0x3960 <gen_insn+624>: ldws,ma 4(sr0,r22),r20
0x3964 <gen_insn+628>: stw r19,c(sr0,r13)
0x3968 <gen_insn+632>: ldo -c(ret0),r13
0x396c <gen_insn+636>: stw r20,-c(sr0,ret0)
...
(gdb) info reg
...
r13: 1 r31: 7b00c03c sr6: 7ae4 fpe3: 0
Scanning through the assembler code in gen_insn, it appears that r13 is
never initialized.