------- Comment #3 from amonakov at gmail dot com 2006-04-03 21:25 ------- (In reply to comment #2) > So what is wrong? >
Oh, sorry for the mess. Shame on me. Building profiledbootstrap with checking enabled produces ICEing compiler (make profiledbootstrap stops trying to compile crtsuff.c) Compiler version is 4.2.0 20060330 Configured with: ../gcc/configure --prefix=/home/alex/gcc/inst-checking/ --enable-checking --enable-languages=c,c++ After stagefeedback compiler has been built, make runs /home/alex/gcc/build/./gcc/xgcc -B/home/alex/gcc/build/./gcc/ -B/home/alex/gcc/inst-checking//i686-pc-linux-gnu/bin/ -B/home/alex/gcc/inst-checking//i686-pc-linux-gnu/lib/ -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/include -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer \ -c ../../gcc/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o which results in <built-in>:0: internal compiler error: in calculate_allocation, at vec.c:58 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Running gdb -args /home/alex/gcc/build/./gcc/cc1 -quiet -v -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber -iprefix /home/alex/gcc/build/gcc/../lib/gcc/i686-pc-linux-gnu/4.2.0/ -isystem /home/alex/gcc/build/./gcc/include -DIN_GCC -DCRT_BEGIN -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/include -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/sys-include -isystem ./include ../../gcc/gcc/crtstuff.c -quiet -dumpbase crtstuff.c -mtune=generic -auxbase-strip crtbegin.o -g -g0 -O2 -O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -o /tmp/ccGc5pyT.s shows that assertion in gcc/vec.c:58 (in vec_heap_o_reserve) fails: Breakpoint 1, fancy_abort (file=0x85e2e16 "../../gcc/gcc/vec.c", line=58, function=0x85e2e2a "calculate_allocation") at ../../gcc/gcc/diagnostic.c:641 641 { (gdb) bt #0 fancy_abort (file=0x85e2e16 "../../gcc/gcc/vec.c", line=58, function=0x85e2e2a "calculate_allocation") at ../../gcc/gcc/diagnostic.c:641 During symbol reading, unsupported tag: 'DW_TAG_const_type'. #1 0x0840aa94 in vec_heap_o_reserve (vec=<value optimized out>, reserve=1, vec_offset=8, elt_size=4) at ../../gcc/gcc/vec.c:58 During symbol reading, unsupported tag: 'DW_TAG_const_type'. #2 0x0804c044 in c_register_pragma_1 (space=0x0, name=0x8555d15 "pack", handler=0x804c9fb <handle_pragma_pack>, allow_expansion=0 '\0') at ../../gcc/gcc/c-pragma.c:729 #3 0x0804c153 in init_pragma () at ../../gcc/gcc/c-pragma.c:815 During symbol reading, unsupported tag: 'DW_TAG_const_type'. During symbol reading, unsupported tag: 'DW_TAG_const_type'. During symbol reading, unsupported tag: 'DW_TAG_const_type'. #4 0x0809f4cb in c_common_init () at ../../gcc/gcc/c-opts.c:1134 During symbol reading, unsupported tag: 'DW_TAG_const_type'. During symbol reading, unsupported tag: 'DW_TAG_const_type'. #5 0x080a913d in c_objc_common_init () at ../../gcc/gcc/c-objc-common.c:130 During symbol reading, unsupported tag: 'DW_TAG_const_type'. During symbol reading, unsupported tag: 'DW_TAG_const_type'. During symbol reading, unsupported tag: 'DW_TAG_const_type'. During symbol reading, unsupported tag: 'DW_TAG_const_type'. #6 0x083df613 in toplev_main (argc=50, argv=0xbfeb1994) at ../../gcc/gcc/toplev.c:1864 #7 0x080bfc4f in main (argc=1398167381, argv=0x8d2cec83) at ../../gcc/gcc/main.c:35 (gdb) up #1 0x0840aa94 in vec_heap_o_reserve (vec=<value optimized out>, reserve=1, vec_offset=8, elt_size=4) at ../../gcc/gcc/vec.c:58 58 gcc_assert (alloc - num < (unsigned)(reserve < 0 ? -reserve : reserve)); (gdb) l 53 /* If there's no prefix, and we've not requested anything, then we 54 will create a NULL vector. */ 55 return 0; 56 57 /* We must have run out of room. */ 58 gcc_assert (alloc - num < (unsigned)(reserve < 0 ? -reserve : reserve)); 59 60 if (reserve < 0) 61 /* Exact size. */ 62 alloc = num + -reserve; When configuring with checking disabled, make profiledbootstrap finishes successfully. -- amonakov at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27011