[Bug middle-end/53381] New: [4.8 Regression] Bootstrap fails building stage1 libgcc

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 16 20:30:00 GMT 2012


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

             Bug #: 53381
           Summary: [4.8 Regression] Bootstrap fails building stage1
                    libgcc
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu


/home/dave/gnu/gcc/objdir/./gcc/xgcc -B/home/dave/gnu/gcc/objdir/./gcc/
-B/home/
dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/gcc/gcc-4.8.
0/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/i
nclude -isystem /home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/sys-include   
-
g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-proto
types -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC
-D
ELF=1 -DLINUX=1 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC
-
DELF=1 -DLINUX=1 -I. -I. -I../.././gcc -I../../../gcc/libgcc
-I../../../gcc/libg
cc/. -I../../../gcc/libgcc/../gcc -I../../../gcc/libgcc/../include 
-DHAVE_CC_TL
S  -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
.
./../../gcc/libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
[...]
../../../gcc/libgcc/unwind-dw2.c: In function 'execute_cfa_program':
../../../gcc/libgcc/unwind-dw2.c:1159:1: internal compiler error: Segmentation
fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [unwind-dw2.o] Error 1

Program received signal SIGSEGV, Segmentation fault.
0x00184d98 in save_call_clobbered_regs () at ../../gcc/gcc/caller-save.c:877
877                       rtx pat = gen_rtx_SET (VOIDmode, cheap,
(gdb) bt
#0  0x00184d98 in save_call_clobbered_regs ()
    at ../../gcc/gcc/caller-save.c:877
#1  0x004b11f8 in reload (first=0x4144fb40, global=1)
    at ../../gcc/gcc/reload1.c:939
#2  0x003dcbd4 in do_reload () at ../../gcc/gcc/ira.c:4261
#3  rest_of_handle_reload () at ../../gcc/gcc/ira.c:4352
#4  0x0045b06c in execute_one_pass (pass=0xa6c050)
    at ../../gcc/gcc/passes.c:2183
#5  0x0045b318 in execute_pass_list (pass=0x0) at ../../gcc/gcc/passes.c:2238
#6  0x0045b318 in execute_pass_list (pass=0x0) at ../../gcc/gcc/passes.c:2238
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) disass $pc-16,$pc+16
Dump of assembler code from 0x184d88 to 0x184da8:
   0x00184d88 <save_call_clobbered_regs+1908>:  copy r7,r26
   0x00184d8c <save_call_clobbered_regs+1912>:  b,l 0x1814ac,rp
   0x00184d90 <save_call_clobbered_regs+1916>:  copy ret0,r25
   0x00184d94 <save_call_clobbered_regs+1920>:  b,l 0x1815ec,rp
=> 0x00184d98 <save_call_clobbered_regs+1924>:  ldw 4(ret0),r26
   0x00184d9c <save_call_clobbered_regs+1928>:  copy ret0,r4
   0x00184da0 <save_call_clobbered_regs+1932>:  b,l 0x181de4,rp
   0x00184da4 <save_call_clobbered_regs+1936>:  ldi 17,r26
End of assembler dump.
(gdb) p/x $ret0
$1 = 0x0

dave@lafayette:~/gnu/gcc/objdir/gcc$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: hppa-linux-gnu
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared
--enable-multiarch --with-multiarch-defaults=hppa-linux-gnu
--enable-linker-build-id --build=hppa-linux-gnu --host=hppa-linux-gnu
--target=hppa-linux-gnu --prefix=/home/dave/opt/gnu/gcc/gcc-4.8.0
--with-local-prefix=/home/dave/opt/gnu --enable-threads=posix
--enable-__cxa_atexit --build=hppa-linux-gnu --enable-clocale=gnu
--enable-java-gc=boehm --enable-languages=c,c++,objc,fortran,obj-c++,java,lto
Thread model: posix
gcc version 4.8.0 20120516 (experimental) [trunk revision 187604] (GCC)



More information about the Gcc-bugs mailing list