------- Comment #2 from danglin at gcc dot gnu dot org  2007-06-21 23:49 -------
The patch mentioned in PR 32296 fixes the return pointer breakage reported
in comment #2.  However, configure still fails at exactly the same point
due to a segmentation fault in def_fn_type():

(gdb) ignor 5 156
Will ignore next 156 crossings of breakpoint 5.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /test/gnu/gcc/objdir/gcc/cc1 -iprefix
/test/gnu/gcc/objdir/gcc/../lib/gcc/hppa64-hp-hpux11.11/4.3.0/ -isystem
./include -isystem ./include-fixed xxx.c -dumpbase xxx.c -auxbase-strip xxx.s
-version -o xxx.s
Breakpoint 3 at 0xc00000000000b310
Breakpoint 4 at 0x800000010000bbf0
Breakpoint 3 at 0x800003fffef4f620
Breakpoint 4 at 0x800003fffefa7a78
GNU C version 4.3.0 20070621 (experimental) (hppa64-hp-hpux11.11)
        compiled by GNU C version 4.3.0 20070621 (experimental), GMP version
4.2.1, MPFR version 2.2.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed:  -iprefix
 /test/gnu/gcc/objdir/gcc/../lib/gcc/hppa64-hp-hpux11.11/4.3.0/ -isystem
 ./include -isystem ./include-fixed xxx.c -auxbase-strip xxx.s
options enabled:  -fPIC -falign-loops -fargument-alias -fauto-inc-dec
 -fbranch-count-reg -fcommon -fearly-inlining
 -feliminate-unused-debug-types -femit-class-debug-always -ffunction-cse
 -fgcse-lm -fident -finline-functions-called-once -fivopts
 -fkeep-static-consts -fleading-underscore -fmath-errno
 -fmove-loop-invariants -fpeephole -freg-struct-return -fsched-interblock
 -fsched-spec -fsched-stalled-insns-dep -fshow-column -fsigned-zeros
 -fsplit-ivs-in-unroller -ftoplevel-reorder -ftrapping-math -ftree-loop-im
 -ftree-loop-ivcanon -ftree-loop-optimize -ftree-scev-cprop
 -ftree-vect-loop-version -fvar-tracking -fzero-initialized-in-bss
 -mbig-switch -mgas -mspace-regs

Breakpoint 5, 0x4000000000185a14 in def_fn_type (
    def=BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG, ret=BT_INT,
    var=0 '\0', n=6) at ../../gcc/gcc/c-common.c:3384
3384          t = builtin_types[a];
(gdb) p i
$25 = 4
(gdb) p/x $ret0
$26 = 0x20
(gdb) p/x $r7
$27 = 0x8000000100058728
(gdb) c
Continuing.

Breakpoint 5, 0x4000000000185a14 in def_fn_type (
    def=BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG, ret=BT_INT,
    var=0 '\0', n=6) at ../../gcc/gcc/c-common.c:3384
3384          t = builtin_types[a];
(gdb) p i
$28 = 5
(gdb) p/x $ret0
$29 = 0xfeda2c60
(gdb) p/x $r7
$30 = 0x8000000100058728
(gdb) p/x $pc
$31 = 0x4000000000185a14
(gdb) disass 0x4000000000185a04 0x4000000000185a24
Dump of assembler code from 0x4000000000185a04 to 0x4000000000185a24:
0x4000000000185a04 <def_fn_type+156>:   ldo -30(sp),r5
0x4000000000185a08 <def_fn_type+160>:   ldd -c8(sp),r31
0x4000000000185a0c <def_fn_type+164>:   ldd 0(r6),r26
0x4000000000185a10 <def_fn_type+168>:   ldw 4(r31),ret0
0x4000000000185a14 <def_fn_type+172>:   ldd,s ret0(r7),r25
0x4000000000185a18 <def_fn_type+176>:   cmpb,*= r25,r26,0x4000000000185a84
<def_fn_type+284>
0x4000000000185a1c <def_fn_type+180>:   ldo 8(r31),r19
0x4000000000185a20 <def_fn_type+184>:   std r19,-c8(sp)
End of assembler dump.
(gdb) bt
#0  0x4000000000185a14 in def_fn_type (
    def=BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG, ret=BT_INT,
    var=0 '\0', n=6) at ../../gcc/gcc/c-common.c:3384
#1  0x400000000018c1a4 in c_common_nodes_and_builtins ()
    at builtin-types.def:403
#2  0x400000000014dda4 in c_init_decl_processing ()
    at ../../gcc/gcc/c-decl.c:2772
#3  0x40000000001b2034 in c_objc_common_init ()
    at ../../gcc/gcc/c-objc-common.c:128
#4  0x400000000046f264 in toplev_main (argc=<value optimized out>,
    argv=<value optimized out>) at ../../gcc/gcc/toplev.c:2037
#5  0x40000000001d7af4 in main (argc=-19249376, argv=0x0)
    at ../../gcc/gcc/main.c:35
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x4000000000185a14 in def_fn_type (
    def=BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG, ret=BT_INT,
    var=0 '\0', n=6) at ../../gcc/gcc/c-common.c:3384
3384          t = builtin_types[a];
(gdb) p/x &builtin_types
$32 = 0x8000000100058728
(gdb) p n
$33 = 6


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32398

Reply via email to