During stage1, compiling unwind-ia64.c with ./xgcc -B./ -B/home/rguenth/ia64/gcc3.4-270104/ia64-unknown-linux-gnu/bin/ -isystem /home/rguenth/ia64/gcc3.4-270104/ia64-unknown-linux-gnu/include -isystem /home/rguenth/ia64/gcc3.4-270104/ia64-unknown-linux-gnu/sys-include -L/tmp/gcc-obj/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/home/rguenth/src/gcc/gcc3.4/gcc -I/home/rguenth/src/gcc/gcc3.4/gcc/. -I/home/rguenth/src/gcc/gcc3.4/gcc/../include -fexceptions -c /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c -o libgcc/./unwind-ia64.o the compiler ICEs with In file included from /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c:40: /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:12: warning: conflicting types for built-in function '__sync_val_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:12: warning: conflicting types for built-in function '__sync_val_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:21: warning: conflicting types for built-in function '__sync_bool_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:21: warning: conflicting types for built-in function '__sync_bool_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c: In function `dup_state_stack': /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c:395: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. This is during a make profiledbootstrap configured with --enable-languages="c,c++" --enable-threads=posix --enable-__cxa_atexit --disable-libunwind-exceptions --disable-checking on 3.4 branch from Jan 27 2004. preprocessed source of unwind-ia64.c attached.
Created attachment 5593 [details] preprocessed testcase
Seems to work, if not compiling with -j4. So maybe there's some dependencies messed up. Richard.
Not. make bootstrap works. make profiledbootstrap fails (without -j4), but it seems to be not stage1, but profile-feedback stage1 (or the training run?). I.e. ./xgcc -B./ -B/home/rguenth/ia64/gcc3.4-270104/ia64-unknown-linux-gnu/bin/ -isystem /home/rguenth/ia64/gcc3.4-270104/ia64-unknown-linux-gnu/include -isystem /home/rguenth/ia64/gcc3.4-270104/ia64-unknown-linux-gnu/sys-include -L/tmp/gcc-obj/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/home/rguenth/src/gcc/gcc3.4/gcc -I/home/rguenth/src/gcc/gcc3.4/gcc/. -I/home/rguenth/src/gcc/gcc3.4/gcc/../include -fexceptions -c /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c -o libgcc/./unwind-ia64.o In file included from /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c:40: /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:12: warning: conflicting types for built-in function '__sync_val_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:12: warning: conflicting types for built-in function '__sync_val_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:21: warning: conflicting types for built-in function '__sync_bool_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/ia64intrin.h:21: warning: conflicting types for built-in function '__sync_bool_compare_and_swap_si' /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c: In function `dup_state_stack': /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c:395: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[3]: *** [libgcc/./unwind-ia64.o] Error 1 make[3]: Leaving directory `/tmp/gcc-obj/gcc' make[2]: *** [libgcc.a] Error 2 make[2]: Leaving directory `/tmp/gcc-obj/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/tmp/gcc-obj/gcc' make: *** [profiledbootstrap] Error 2 somebody could decipher the targets make spits out here and adjust the Summary of the bug according to this. This would also mean the testcase is meaningless, as the ICE triggers only with an instrumented(?) compiler?
Jan, could you please have a look, and at least confirm this bug if you can reproduce it?
Subject: Re: ICE on compiling unwind-ia64.c during stage1 On Thu, 18 Mar 2004, giovannibajo at libero dot it wrote: > > ------- Additional Comments From giovannibajo at libero dot it 2004-03-18 02:40 ------- > Jan, could you please have a look, and at least confirm this bug if you can > reproduce it? Still happens for me with 3.4 branch as of 2004 Mar 18. Configuring with --enable-languages="c,c++,f77" --enable-threads=posix --enable-__cxa_atexit --disable-libunwind-exceptions --disable-checking make profiledbootstrap fails with ./xgcc -B./ -B/home/rguenth/ia64/gcc3.4-180304/ia64-unknown-linux-gnu/bin/ -isystem /home/rguenth/ia64/gcc3.4-180304/ia64-unknown-linux-gnu/include -isystem /home/rguenth/ia64/gcc3.4-180304/ia64-unknown-linux-gnu/sys-include -L/tmp/gcc-obj/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/home/rguenth/src/gcc/gcc3.4/gcc -I/home/rguenth/src/gcc/gcc3.4/gcc/. -I/home/rguenth/src/gcc/gcc3.4/gcc/../include -fexceptions -c /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c -o libgcc/./unwind-ia64.o /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c: In function `dup_state_stack': /home/rguenth/src/gcc/gcc3.4/gcc/config/ia64/unwind-ia64.c:395: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. i.e. instrumented compiler ICEs in compiling gcc/config/ia64/unwind-ia64.c Richard.
*** Bug 16108 has been marked as a duplicate of this bug. ***
I just did a successful make profiledbootstrap on the gcc-3.4 branch, so this must have been the same bug as 16490. *** This bug has been marked as a duplicate of 16490 ***