------- Comment #47 from dave at hiauly1 dot hia dot nrc dot ca  2010-07-29 
15:05 -------
Subject: Re:  [4.6 regression] Revision 162270 failed
        to bootstrap

On Mon, 19 Jul 2010, dave at hiauly1 dot hia dot nrc dot ca wrote:

> 
> 
> ------- Comment #33 from dave at hiauly1 dot hia dot nrc dot ca  2010-07-19 
> 14:31 -------
> Subject: Re:  [4.6 regression] Revision 162270 failed to bootstrap
> 
> > This patch (with/without the patch in
> > http://gcc.gnu.org/ml/gcc-patches/2010-07/txt00119.txt) does not fix the
> > bootstrap failure on x86_64-apple-darwin10.4.
> 
> Same on hppa64-hp-hpux11.11.  With the rc-fix4.diff and entrymode.diff
> patches, we still fail compiling libgcc in stage2, although at a slightly
> different spot:
> 
> /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
> -B/opt/gnu64/gcc/g
> cc-4.6.0/hppa64-hp-hpux11.11/bin/
> -B/opt/gnu64/gcc/gcc-4.6.0/hppa64-hp-hpux11.11
> /lib/ -isystem /opt/gnu64/gcc/gcc-4.6.0/hppa64-hp-hpux11.11/include -isystem
> /op
> t/gnu64/gcc/gcc-4.6.0/hppa64-hp-hpux11.11/sys-include    -g -O2 -O2  -g -O2
> -DIN
> _GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
> -Wmissing-protot
> ypes -Wold-style-definition  -isystem ./include  -fPIC -Dpa64=1 -DELF=1
> -mlong-c
> alls -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I.
> -I..
> /.././gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/.
> -I../../../gcc/libgcc/..
> /gcc -I../../../gcc/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o
> __gcc_bcmp.
> o -MT __gcc_bcmp.o -MD -MP -MF __gcc_bcmp.dep -DL__gcc_bcmp -c
> ../../../gcc/libg
> cc/../gcc/libgcc2.c \
>           -fvisibility=hidden -DHIDE_EXPORTS
> ../../../gcc/libgcc/../gcc/libgcc2.c: In function '__gcc_bcmp':
> ../../../gcc/libgcc/../gcc/libgcc2.c:1979:1: internal compiler error:
> Segmentati

It appears cfg.c is being miscompiled.  Replacing stage2 version with
stage1 version results in the above compilation completing successfully.

This is the backtrace as much as can be trusted:

Program received signal SIGSEGV, Segmentation fault.
find_edge (pred=0x800003fffdf8e750, succ=0x0) at ../../gcc/gcc/cfganal.c:492
492       if (EDGE_COUNT (pred->succs) <= EDGE_COUNT (succ->preds))
(gdb) bt
#0  find_edge (pred=0x800003fffdf8e750, succ=0x0)
    at ../../gcc/gcc/cfganal.c:492
#1  0x40000000002ba014 in redirect_edge_succ_nodup (e=0x800003fffdcd1f00, 
    new_succ=0x0) at ../../gcc/gcc/cfg.c:398
#2  0x4000000000749f1c in ssa_redirect_edge (e=0x800003fffdcd1f00, dest=0x0)
    at ../../gcc/gcc/tree-ssa.c:207
#3  0x40000000005f2330 in gimple_redirect_edge_and_branch (
    e=0x800003fffdcd1f00, dest=0x0) at ../../gcc/gcc/tree-cfg.c:4951
#4  0x40000000005f29d4 in gimple_redirect_edge_and_branch_force (
    e=<value optimized out>, dest=<value optimized out>)
    at ../../gcc/gcc/tree-cfg.c:4973
#5  0x40000000002cf08c in redirect_edge_and_branch_force (
    e=0x800003fffdcd1f00, dest=0x0) at ../../gcc/gcc/cfghooks.c:400
#6  0x40000000002d3aa4 in copy_bbs (bbs=0x800000010014f820, 
    n=<value optimized out>, new_bbs=<value optimized out>, 
    edges=0x800003fffdff1578, num_edges=1, new_edges=0x800003fffdff15e8, 
    base=<value optimized out>, after=<value optimized out>)
    at ../../gcc/gcc/cfglayout.c:1452

Attached cfg.i and cfg.s from stage2, and cc1 command.

Dave


------- Comment #48 from dave at hiauly1 dot hia dot nrc dot ca  2010-07-29 
15:05 -------
Created an attachment (id=21352)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21352&action=view)


------- Comment #49 from dave at hiauly1 dot hia dot nrc dot ca  2010-07-29 
15:05 -------
Created an attachment (id=21353)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21353&action=view)


------- Comment #50 from dave at hiauly1 dot hia dot nrc dot ca  2010-07-29 
15:05 -------
Created an attachment (id=21354)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21354&action=view)


-- 


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

Reply via email to