This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Bootstrap failure on solaris2.7 (was: new real.c implementation)
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Sep 2002 16:43:50 -0400 (EDT)
- Subject: Bootstrap failure on solaris2.7 (was: new real.c implementation)
- References: <20020914001909.GA32475@redhat.com>
I'm getting another (different) bootstrap failure in stage1 for
sparc-sun-solaris2.7:
> ./xgcc -B./ -B/usr/local/sparc-sun-solaris2.7/bin/ -isystem
> /usr/local/sparc-sun-solaris2.7/include -isystem
> /usr/local/sparc-sun-solaris2.7/sys-include -c -o crt1.o -x
> assembler-with-cpp
> ../../egcc-CVS20020917/gcc/config/sparc/sol2-c1.asm
> cc1: internal compiler error: in ?, at real.c:1964
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> make[2]: *** [crt1.o] Error 1
> make[2]: Leaving directory `/tmp/kg/basel/build/gcc'
> make[1]: *** [stage1_build] Error 2
This occurs if I use cc for stage1. If I use gcc, it doesn't fail
but I get comparison differences at the end of the bootstrap.
I ran dbx on the failure above and like the irix6.5 problem, this also
appears to be in startup code. I was able to reproduce it by
compiling a file containing simply "extern int i;". Here's the
backtrace:
(/opt/SUNWspro/bin/../WS5.0/bin/sparcv9/dbx) where
[1] exit(0x1, 0x78634c, 0x7e29b0, 0x0, 0x0, 0x1), at 0xff31a418
=>[2] internal_error(msgid = 0x786454 "in %s, at %s:%d", ...), line 1198 in "diagnostic.c"
[3] fancy_abort(file = 0x79a5b0 "../../egcc-CVS20020917/gcc/real.c",
line = 1964, function = 0x79a5d4 "?"), line 1363 in "diagnostic.c"
[4] real_digit(n = -1), line 1964 in "real.c"
[5] real_to_decimal(str = 0xffbef280 "", r_orig = 0xffbef2c0, digits = 8), line 1558 in "real.c"
[6] builtin_define_with_hex_fp_value(macro = 0xffbef3e4
"__FLT_MAX__", type = 0x879d00, digits = 9, hex_str = 0xffbef364
"0x0.ffffffp128", fp_suffix = 0x77d190 "F"), line 5297 in "c-common.c"
[7] builtin_define_float_constants(name_prefix = 0x77d18c "FLT",
fp_suffix = 0x77d190 "F", type = 0x879d00), line 5040 in "c-common.c"
[8] cb_register_builtins(pfile = 0x86bb10), line 5125 in "c-common.c"
[9] init_builtins(pfile = 0x86bb10), line 750 in "cppinit.c"
[10] cpp_finish_options(pfile = 0x86bb10), line 1056 in "cppinit.c"
[11] cpp_preprocess_file(pfile = 0x86bb10, in_fname = 0xffbefbcd
"/teal/caip5/ghazi/baz.c", out_stream = 0x81f548), line 76 in "cppmain.c"
[12] preprocess_file(), line 1411 in "c-opts.c"
[13] c_common_init(filename = 0xffbefbe5 "baz.i"), line 1434 in "c-opts.c"
[14] c_objc_common_init(filename = 0xffbefbe5 "baz.i"), line 231 in "c-objc-common.c"
[15] lang_dependent_init(name = 0xffbefbe5 "baz.i"), line 5198 in "toplev.c"
[16] do_compile(), line 5333 in "toplev.c"
[17] toplev_main(argc = 21, argv = 0xffbef93c), line 5364 in "toplev.c"
[18] main(argc = 21, argv = 0xffbef93c), line 35 in "main.c"