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]

make bootstrap fails with segmentation fault in xgcc


Under hpux9.01 with the current cvs source and CFLAGS=-O3, the xgcc dumps core:

...
stage1/xgcc -Bstage1/ -B/usr/local/hppa1.1-hp-hpux9.01/bin/  -DIN_GCC -DHAIFA
 -W -Wall -O2 -O3 -W -Wall  -DHAVE_CONFIG_H  -o xgcc gcc.o gccspec.o intl.o \
  prefix.o version.o  obstack.o alloca.o       ../libiberty/libiberty.a
rm -f SYSCALLS.c tmp-SYSCALLS.s
cat ../../gcc/sys-types.h ../../gcc/sys-protos.h > SYSCALLS.c
./xgcc -B./ -B/usr/local/hppa1.1-hp-hpux9.01/bin/ -I/usr/local/hppa1.1-hp-hpux9.01/include  -DIN_GCC -DHAIFA    -W -Wall -O2 -O3 -W -Wall -I./include     -I. -I../../gcc -I../../gcc/config -I../../gcc/../include \
  -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c
make[2]: *** [SYSCALLS.c.X] Segmentation fault (core dumped)

The segmentation fault occurs in process_command at 0xa65c.  This is
the code leading up to the fault:

0xa64c <process_command+3916>:  stw ret0,-4(sr0,r19)
0xa650 <process_command+3920>:  ldi 2b,r21
0xa654 <process_command+3924>:  addl r4,r19,r19
0xa658 <process_command+3928>:  ldw 0(sr0,r19),r19
0xa65c <process_command+3932>:  ldb 0(sr0,r19),r20

The instruction at 0xa658 loads 0 into r19 causing the fault.

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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