This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mainline ICE compiling glibc: Internal compiler error inmake_decl_rtl, at varasm.c:832



On i686-linux I get this ICE, I'm appending preprocessed sources and
some debugger output.

Andreas


gee:/cvs/libc/misc:[0]$ /opt/gcc-3.1-devel/bin/gcc efgcvt_r.c -c -O3 -Wall -Wbad-function-cast -Wcomment -Wcomments -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wstrict-prototypes -Wtrigraphs -Wwrite-strings -freorder-blocks -g -march=pentiumpro -mcpu=i686      -I../include -I. -I/builds/glibc/gcc-3.1/misc -I.. -I../libio  -I/builds/glibc/gcc-3.1 -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic   -D_LIBC_REENTRANT -include ../include/libc-symbols.h     -o /builds/glibc/gcc-3.1/misc/efgcvt_r.o -v -save-temps
Reading specs from /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc-3.1-devel --enable-shared --enable-threads=posix --enable-clocale=gnu --with-gnu-as --with-gnu-ld --disable-nls --with-system-zlib --enable-languages=c,objc,c++,f77,java,ada
Thread model: posix
gcc version 3.1 20011205 (experimental)
 /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/cpp0 -lang-c -v -I../include -I. -I/builds/glibc/gcc-3.1/misc -I.. -I../libio -I/builds/glibc/gcc-3.1 -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Wall -Wbad-function-cast -Wcomment -Wcomments -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wstrict-prototypes -Wtrigraphs -Wwrite-strings -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__tune_i686__ -D__tune_pentiumpro__ -D_LIBC_REENTRANT -include ../include/libc-symbols.h efgcvt_r.c efgcvt_r.i
GNU CPP version 3.1 20011205 (experimental) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/opt/gcc-3.1-devel/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 ../include
 .
 /builds/glibc/gcc-3.1/misc
 ..
 ../libio
 /builds/glibc/gcc-3.1
 ../sysdeps/i386/elf
 ../linuxthreads/sysdeps/unix/sysv/linux/i386
 ../linuxthreads/sysdeps/unix/sysv/linux
 ../linuxthreads/sysdeps/pthread
 ../sysdeps/pthread
 ../linuxthreads/sysdeps/unix/sysv
 ../linuxthreads/sysdeps/unix
 ../linuxthreads/sysdeps/i386/i686
 ../linuxthreads/sysdeps/i386
 ../sysdeps/unix/sysv/linux/i386/i686
 ../sysdeps/unix/sysv/linux/i386
 ../sysdeps/unix/sysv/linux
 ../sysdeps/gnu
 ../sysdeps/unix/common
 ../sysdeps/unix/mman
 ../sysdeps/unix/inet
 ../sysdeps/unix/sysv/i386
 ../sysdeps/unix/sysv
 ../sysdeps/unix/i386
 ../sysdeps/unix
 ../sysdeps/posix
 ../sysdeps/i386/i686/fpu
 ../sysdeps/i386/i686
 ../sysdeps/i386/i486
 ../sysdeps/i386/fpu
 ../sysdeps/i386
 ../sysdeps/wordsize-32
 ../sysdeps/ieee754/ldbl-96
 ../sysdeps/ieee754/dbl-64
 ../sysdeps/ieee754/flt-32
 ../sysdeps/ieee754
 ../sysdeps/generic/elf
 ../sysdeps/generic
 /usr/local/include
 /opt/gcc-3.1-devel/include
 /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
 /usr/include
End of search list.
 /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1 -fpreprocessed efgcvt_r.i -quiet -dumpbase efgcvt_r.c -march=pentiumpro -mcpu=i686 -g -O3 -Wall -Wbad-function-cast -Wcomment -Wcomments -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wstrict-prototypes -Wtrigraphs -Wwrite-strings -version -freorder-blocks -o efgcvt_r.s
GNU CPP version 3.1 20011205 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 3.1 20011205 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.1 20011205 (experimental).
../sysdeps/i386/fpu/bits/mathinline.h: In function `fcvt_r':
../sysdeps/i386/fpu/bits/mathinline.h:668: Internal compiler error in make_decl_rtl, at varasm.c:832
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Breakpoint 1, fancy_abort (file=0x8359ea4 "/cvs/gcc/gcc/varasm.c", line=832, 
    function=0x835a311 "make_decl_rtl") at /cvs/gcc/gcc/diagnostic.c:1450
1450      internal_error ("Internal compiler error in %s, at %s:%d",
(gdb) bt
#0  fancy_abort (file=0x8359ea4 "/cvs/gcc/gcc/varasm.c", line=832, 
    function=0x835a311 "make_decl_rtl") at /cvs/gcc/gcc/diagnostic.c:1450
#1  0x082351ee in make_decl_rtl (decl=0x402c2414, asmspec=0x0)
    at /cvs/gcc/gcc/varasm.c:836
#2  0x080f2849 in expand_expr (exp=0x402c2414, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:6100
#3  0x080ef1b3 in store_field (target=0x40306450, bitsize=64, bitpos=0, 
    mode=DFmode, exp=0x402c2414, value_mode=VOIDmode, unsignedp=0, 
    type=0x402c27b4, alias_set=2) at /cvs/gcc/gcc/expr.c:5039
#4  0x080ecf86 in store_constructor_field (target=0x40306450, bitsize=64, 
    bitpos=0, mode=DFmode, exp=0x402c2414, type=0x402c27b4, cleared=1, 
    alias_set=2) at /cvs/gcc/gcc/expr.c:4314
#5  0x080ed1ef in store_constructor (exp=0x402c4000, target=0x40306450, 
    cleared=1, size=8) at /cvs/gcc/gcc/expr.c:4497
#6  0x080f4450 in expand_expr (exp=0x402c4000, target=0x40306450, 
    tmode=DImode, modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:6547
#7  0x080ec866 in store_expr (exp=0x402c4000, target=0x40306450, want_value=0)
    at /cvs/gcc/gcc/expr.c:4040
#8  0x080eb72e in expand_assignment (to=0x402feef4, from=0x402c4000, 
    want_value=0, suggest_reg=0) at /cvs/gcc/gcc/expr.c:3851
#9  0x0821132f in expand_decl_init (decl=0x402feef4)
    at /cvs/gcc/gcc/stmt.c:4134
#10 0x08087c75 in emit_local_var (decl=0x402feef4)
    at /cvs/gcc/gcc/c-semantics.c:268
#11 0x0808161b in c_expand_expr (exp=0x40303930, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/c-common.c:3461
#12 0x080f7909 in expand_expr (exp=0x40303930, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:7169
#13 0x080f2c53 in expand_expr (exp=0x40302640, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:6764
#14 0x080fd1a9 in expand_expr (exp=0x40303918, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:7225
#15 0x080f7ec9 in expand_expr (exp=0x40302620, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:8699
#16 0x080f7ec9 in expand_expr (exp=0x40302600, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:8699
#17 0x080fb1ef in expand_expr (exp=0x403025e0, target=0x40306440, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:7852
#18 0x080fd1a9 in expand_expr (exp=0x40303900, target=0x40306440, 
    tmode=SImode, modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:7225
#19 0x080ec866 in store_expr (exp=0x40303900, target=0x40306440, want_value=0)
    at /cvs/gcc/gcc/expr.c:4040
#20 0x080eb72e in expand_assignment (to=0x402fee80, from=0x40303900, 
    want_value=0, suggest_reg=1) at /cvs/gcc/gcc/expr.c:3851
#21 0x080f4726 in expand_expr (exp=0x403025c0, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:8383
#22 0x0820d3ea in expand_expr_stmt_value (exp=0x403025c0, want_value=0)
    at /cvs/gcc/gcc/stmt.c:2181
#23 0x08087f0c in genrtl_expr_stmt_value (expr=0x403025c0, want_value=0)
    at /cvs/gcc/gcc/c-semantics.c:337
#24 0x0808961e in expand_stmt (t=0x403038b8) at /cvs/gcc/gcc/c-semantics.c:766
#25 0x080892fb in genrtl_compound_stmt (t=0x403038a0)
    at /cvs/gcc/gcc/c-semantics.c:683
#26 0x08089668 in expand_stmt (t=0x40303858) at /cvs/gcc/gcc/c-semantics.c:790
#27 0x0808170b in c_expand_expr (exp=0x40303828, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/c-common.c:3471
#28 0x080f7909 in expand_expr (exp=0x40303828, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:7169
#29 0x080fe59d in expand_expr (exp=0x40302700, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:6285
#30 0x080ffc50 in do_jump (exp=0x40302700, if_false_label=0x403042c0, 
    if_true_label=0x0) at /cvs/gcc/gcc/expr.c:9473
#31 0x080ffd76 in do_jump (exp=0x402ebf80, if_false_label=0x403042c0, 
    if_true_label=0x0) at /cvs/gcc/gcc/expr.c:9209
#32 0x0820dd4d in expand_start_cond (cond=0x402ebf80, exitflag=0)
    at /cvs/gcc/gcc/stmt.c:2436
#33 0x08088153 in genrtl_if_stmt (t=0x402ebfa0)
    at /cvs/gcc/gcc/c-semantics.c:389
#34 0x08089682 in expand_stmt (t=0x402ff2a0) at /cvs/gcc/gcc/c-semantics.c:786
#35 0x080892fb in genrtl_compound_stmt (t=0x402ff288)
    at /cvs/gcc/gcc/c-semantics.c:683
#36 0x08089668 in expand_stmt (t=0x402ff288) at /cvs/gcc/gcc/c-semantics.c:790
#37 0x08064255 in c_expand_body (fndecl=0x402efae0, nested_p=0, can_defer_p=1)
    at /cvs/gcc/gcc/c-decl.c:6963
#38 0x08063eda in finish_function (nested=0) at /cvs/gcc/gcc/c-decl.c:6858
---Type <return> to continue, or q <return> to quit---
#39 0x0804a092 in yyparse_1 () at /usr/share/bison.simple:354
#40 0x0821c134 in compile_file () at /cvs/gcc/gcc/toplev.c:2113
#41 0x08220f09 in do_compile () at /cvs/gcc/gcc/toplev.c:5155
#42 0x08220f68 in toplev_main (argc=27, argv=0xbffff354)
    at /cvs/gcc/gcc/toplev.c:5185
#43 0x080975cb in main (argc=27, argv=0xbffff354) at /cvs/gcc/gcc/main.c:35
#44 0x400497ee in __libc_start_main () from /lib/libc.so.6

(gdb) p decl
$1 = 0x402c2414
(gdb) pt
 <parm_decl 0x402c2414 __x
    type <real_type 0x4015a9f8 double DF
        size <integer_cst 0x401592c0 constant 64>
        unit size <integer_cst 0x401594e0 constant 8>
        align 64 symtab 13 alias set 2 precision 64
        pointer_to_this <pointer_type 0x402315e4>>
    used DF file ../sysdeps/i386/fpu/bits/mathinline.h line 666 size <integer_cst 0x401592c0 64> unit size <integer_cst 0x401594e0 8>
    align 64 context <function_decl 0x4023bc3c __finite> result <real_type 0x4015a9f8 double> initial <real_type 0x4015a9f8 double> arg-type <real_type 0x4015a9f8 double> arg-type-as-written <real_type 0x4015a9f8 double>>


Attachment: efgcvt_r.i.bz2
Description: Binary data


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]