Bug 13882 - ICE on compiling unwind-ia64.c during stage1 (profiledbootstrap)
Summary: ICE on compiling unwind-ia64.c during stage1 (profiledbootstrap)
Status: RESOLVED DUPLICATE of bug 16490
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, wrong-code
: 16108 (view as bug list)
Depends on: 15836
Blocks:
  Show dependency treegraph
 
Reported: 2004-01-27 10:42 UTC by Richard Biener
Modified: 2005-07-23 22:49 UTC (History)
3 users (show)

See Also:
Host: ia64-unknown-linux-gnu
Target: ia64-unknown-linux-gnu
Build: ia64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments
preprocessed testcase (25.96 KB, application/octet-stream)
2004-01-27 10:43 UTC, Richard Biener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2004-01-27 10:42:25 UTC
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.
Comment 1 Richard Biener 2004-01-27 10:43:59 UTC
Created attachment 5593 [details]
preprocessed testcase
Comment 2 Richard Biener 2004-01-27 13:01:47 UTC
Seems to work, if not compiling with -j4.  So maybe there's some dependencies
messed up.

Richard.
Comment 3 Richard Biener 2004-01-27 13:07:32 UTC
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?
Comment 4 Giovanni Bajo 2004-03-18 02:40:49 UTC
Jan, could you please have a look, and at least confirm this bug if you can 
reproduce it?
Comment 5 Richard Biener 2004-03-18 10:06:37 UTC
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.
Comment 6 Andrew Pinski 2004-06-21 16:25:06 UTC
*** Bug 16108 has been marked as a duplicate of this bug. ***
Comment 7 Jim Wilson 2004-08-17 00:14:13 UTC
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 ***