This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: use tablejump_p more places


This patch introduces a bootstrap failure in stage1 on hppa2.0w-hp-hpux11.11:

/xxx/gnu/gcc-3.3/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.3/objdir/gcc/ -B/opt/gnu/hppa2
.0w-hp-hpux11.11/bin/ -B/opt/gnu/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/hp
pa2.0w-hp-hpux11.11/include -isystem /opt/gnu/hppa2.0w-hp-hpux11.11/sys-include 
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototyp
es -isystem ./include  -fPIC -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. 
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../incl
ude -fexceptions -c ../../gcc/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ../../gcc/gcc/unwind-dw2.c:28:
../../gcc/gcc/unwind-pe.h: In function `size_of_encoded_value':
../../gcc/gcc/unwind-pe.h:77: internal compiler error: Segmentation fault

The segmentation fault occurs because tablejump_p calls onlyjump_p
with insn=0.  This occurs because fold_rtx is called with insn=0:

#0  0x003f2c6c in onlyjump_p (insn=0x0) at ../../gcc/gcc/jump.c:1257
#1  0x0026c35c in tablejump_p (insn=0x0, label=0x7eff1b2c, table=0x0)
    at ../../gcc/gcc/rtlanal.c:2907
#2  0x0035d598 in fold_rtx (x=0x7aedc000, insn=0x0) at ../../gcc/gcc/cse.c:3357
#3  0x0035f1d0 in fold_rtx (x=0x7aeaaca0, insn=0x0) at ../../gcc/gcc/cse.c:3753
#4  0x0035c354 in find_best_addr (insn=0x7adc75d0, loc=0x7aeaab24, mode=SImode)
    at ../../gcc/gcc/cse.c:2925
...

The code in cse.c previously checked insn to see if it was 0.

Dave
-- 
J. David Anglin                                  dave dot anglin at nrc-cnrc dot gc dot ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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