http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46512
Summary: [4.6 Regression] rtstuff.c:563:1: internal compiler error: Segmentation fault Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: dang...@gcc.gnu.org Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu /home2/dave/gcc-4.6/objdir/./gcc/xgcc -B/home2/dave/gcc-4.6/objdir/./gcc/ -B/hom e2/dave/opt/gnu/gcc/gcc-4.6.0/hppa-linux/bin/ -B/home2/dave/opt/gnu/gcc/gcc-4.6. 0/hppa-linux/lib/ -isystem /home2/dave/opt/gnu/gcc/gcc-4.6.0/hppa-linux/include -isystem /home2/dave/opt/gnu/gcc/gcc-4.6.0/hppa-linux/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmis sing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc/ gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/inclu de -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../lib decnumber -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero- initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fno-stack-protecto r -I. -I. -I../.././gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/. -I../../. ./gcc/libgcc/../gcc -I../../../gcc/libgcc/../include -o crtend.o -MT crtend.o - MD -MP -MF crtend.dep \ -c ../../../gcc/libgcc/../gcc/crtstuff.c -DCRT_END ../../../gcc/libgcc/../gcc/crtstuff.c: In function 'frame_dummy': ../../../gcc/libgcc/../gcc/crtstuff.c:372:19: warning: array subscript is above array bounds [-Warray-bounds] ../../../gcc/libgcc/../gcc/crtstuff.c: In function '__do_global_ctors_aux': ../../../gcc/libgcc/../gcc/crtstuff.c:566:25: warning: array subscript is below array bounds [-Warray-bounds] ../../../gcc/libgcc/../gcc/crtstuff.c:563:1: internal compiler error: Segmentati on fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[3]: *** [crtend.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/home2/dave/gcc-4.6/objdir/hppa-linux/libgcc' make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory `/home2/dave/gcc-4.6/objdir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home2/dave/gcc-4.6/objdir' make: *** [bootstrap] Error 2 Tue Nov 16 16:20:17 PST 2010 (gdb) r Starting program: /home2/dave/gcc-4.6/objdir/gcc/cc1 -I . -I . -I ../../gcc/gcc -I ../../gcc/gcc/. -I ../../gcc/gcc/../include -I ../../gcc/gcc/../libcpp/include -I ../../gcc/gcc/../libdecnumber -I ../../gcc/gcc/../libdecnumber/dpd -I ../libdecnumber -I . -I . -I ../.././gcc -I ../../../gcc/libgcc -I ../../../gcc/libgcc/. -I ../../../gcc/libgcc/../gcc -I ../../../gcc/libgcc/../include -iprefix /home2/dave/gcc-4.6/objdir/gcc/../lib/gcc/hppa-linux/4.6.0/ -isystem /home2/dave/gcc-4.6/objdir/./gcc/include -isystem /home2/dave/gcc-4.6/objdir/./gcc/include-fixed -MD crtend.d -MF crtend.dep -MP -MT crtend.o -D IN_GCC -D CRT_END -isystem /home2/dave/opt/gnu/gcc/gcc-4.6.0/hppa-linux/include -isystem /home2/dave/opt/gnu/gcc/gcc-4.6.0/hppa-linux/sys-include -isystem ./include ../../../gcc/libgcc/../gcc/crtstuff.c -quiet -dumpbase crtstuff.c -auxbase-strip crtend.o -g -g -g0 -O2 -O2 -O2 -Wextra -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fno-stack-protector -o xxx.s GNU C (GCC) version 4.6.0 20101116 (experimental) [trunk revision 166834] (hppa-linux) compiled by GNU C version 4.3.3, GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.6.0 20101116 (experimental) [trunk revision 166834] (hppa-linux) compiled by GNU C version 4.3.3, GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 14ecb7365bef8f219b8d7d1f9ab6f8f0 ../../../gcc/libgcc/../gcc/crtstuff.c: In function '__do_global_ctors_aux': ../../../gcc/libgcc/../gcc/crtstuff.c:566:25: warning: array subscript is below array bounds [-Warray-bounds] Program received signal SIGSEGV, Segmentation fault. 0x02c78148 in pa_function_arg_boundary (mode=SImode, type=0x0) at ../../gcc/gcc/config/pa/pa.c:9611 9611 tree size = TYPE_SIZE (type); (gdb) bt #0 0x02c78148 in pa_function_arg_boundary (mode=SImode, type=0x0) at ../../gcc/gcc/config/pa/pa.c:9611 #1 0x00bfc58c in locate_and_pad_parm (passed_mode=SImode, type=0x0, in_regs=1, partial=0, fndecl=0x0, initial_offset_ptr=0xfdf020a0, locate=0xfdf02138) at ../../gcc/gcc/function.c:3699 #2 0x00544768 in emit_library_call_value_1 (retval=7, orgfun=0x0, value=0x1, fn_type=LCT_NORMAL, outmode=VOIDmode, nargs=-34594656, p=0xfdf02138) at ../../gcc/gcc/calls.c:3540 #3 0x0122bb40 in build_libfunc_function (name=0x7 <Address 0x7 out of bounds>) at ../../gcc/gcc/optabs.c:6013 Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) p type $1 = (const_tree) 0x0