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]

ICE compiling glibc with current CVS



Richard,

with current CVS I get the appended ICE compiling GCC, I'm appending
the preprocessed file.  This happens on i686-linux with glibc 2.2.4
and Linux 2.4.15pre2 kernel,

Andreas


gromit:/usr/src/cvs/libc/math:[0]$ /opt/gcc-3.1-devel/bin/gcc ../sysdeps/generic/s_csinh.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     -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I. -I/builds/glibc/gcc-3.1/math -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/i586 -I../sysdeps/i386/i586 -I../sysdeps/i386/i486 -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/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/math/s_csinh.o -v
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
Thread model: posix
gcc version 3.1 20011110 (experimental)
 /opt/gcc-3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1 -lang-c -v -I../include -I. -I/builds/glibc/gcc-3.1/math -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/i586 -I../sysdeps/i386/i586 -I../sysdeps/i386/i486 -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/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 -Wno-uninitialized -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__tune_i686__ -D__tune_pentiumpro__ -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -D_LIBC_REENTRANT -include ../include/libc-symbols.h ../sysdeps/generic/s_csinh.c -quiet -dumpbase s_csinh.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 -Wno-uninitialized -version -freorder-blocks -o /tmp/ccwgZAFi.s
GNU CPP version 3.1 20011110 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 3.1 20011110 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.1 20011110 (experimental).
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/math
 ..
 ../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/i586
 ../sysdeps/i386/i586
 ../sysdeps/i386/i486
 ../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/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.
../sysdeps/generic/s_csinh.c: In function `__csinh':
../sysdeps/generic/s_csinh.c:121: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Program received signal SIGSEGV, Segmentation fault.
0x809ef5f in nonoverlapping_memrefs_p (x=0x40210540, y=0x40270a10)
    at /cvs/gcc/gcc/alias.c:1809
1809      sizex = (REG_P (rtlx) ? GET_MODE_SIZE (GET_MODE (rtlx))
(gdb) bt
#0  0x809ef5f in nonoverlapping_memrefs_p (x=0x40210540, y=0x40270a10)
    at /cvs/gcc/gcc/alias.c:1809
#1  0x809f734 in write_dependence_p (mem=0x40270a10, x=0x40210540, writep=0)
    at /cvs/gcc/gcc/alias.c:2002
#2  0x809f8a0 in anti_dependence (mem=0x40270a10, x=0x40210540)
    at /cvs/gcc/gcc/alias.c:2043
#3  0x828139b in cselib_mem_conflict_p (mem_base=0x40210540, val=0x40270a10)
    at /cvs/gcc/gcc/cselib.c:1044
#4  0x82814df in cselib_invalidate_mem_1 (slot=0x84b3864, info=0x40210540)
    at /cvs/gcc/gcc/cselib.c:1097
#5  0x82e895f in htab_traverse (htab=0x84b3278, 
    callback=0x8281460 <cselib_invalidate_mem_1>, info=0x40210540)
    at /cvs/gcc/libiberty/hashtab.c:528
#6  0x8281552 in cselib_invalidate_mem (mem_rtx=0x40210540)
    at /cvs/gcc/gcc/cselib.c:1107
#7  0x82815d4 in cselib_invalidate_rtx (dest=0x40210540, ignore=0x402702f0, 
    data=0x0) at /cvs/gcc/gcc/cselib.c:1127
#8  0x820c6d0 in note_stores (x=0x402702f0, 
    fun=0x8281560 <cselib_invalidate_rtx>, data=0x0)
    at /cvs/gcc/gcc/rtlanal.c:1408
#9  0x828185e in cselib_record_sets (insn=0x4025bee0)
    at /cvs/gcc/gcc/cselib.c:1252
#10 0x8281a8b in cselib_process_insn (insn=0x4025bee0)
---Type <return> to continue, or q <return> to quit---
    at /cvs/gcc/gcc/cselib.c:1305
#11 0x8207964 in reload_cse_regs_1 (first=0x40252e80)
    at /cvs/gcc/gcc/reload1.c:8148
#12 0x82079a4 in reload_cse_regs (first=0x40252e80)
    at /cvs/gcc/gcc/reload1.c:8162
#13 0x822c9b6 in rest_of_compilation (decl=0x40177488)
    at /cvs/gcc/gcc/toplev.c:3485
#14 0x806513b in c_expand_body (fndecl=0x40177488, nested_p=0)
    at /cvs/gcc/gcc/c-decl.c:6852
#15 0x8064e02 in finish_function (nested=0) at /cvs/gcc/gcc/c-decl.c:6751
#16 0x804a09f in yyparse_1 () at /usr/share/bison.simple:353
#17 0x822b0b7 in compile_file (name=0xbffff563 "../sysdeps/generic/s_csinh.c")
    at /cvs/gcc/gcc/toplev.c:2338
#18 0x822f369 in toplev_main (argc=114, argv=0xbfffeb44)
    at /cvs/gcc/gcc/toplev.c:4957
#19 0x809c51b in main (argc=114, argv=0xbfffeb44) at /cvs/gcc/gcc/main.c:35
#20 0x400497ee in __libc_start_main () from /lib/libc.so.6
(gdb) p rtlx
$1 = 0x40210560
(gdb) p *rtlx
$2 = {code = CONCAT, mode = DCmode, jump = 0, call = 0, unchanging = 0, 
  volatil = 0, in_struct = 0, used = 1, integrated = 0, frame_related = 0, 
  fld = {{rtwint = 1075905856, rtint = 1075905856, rtuint = 1075905856, 
      rtstr = 0x40210540 "?", rtx = 0x40210540, rtvec = 0x40210540, 
      rttype = 1075905856, rt_addr_diff_vec_flags = {min_align = 64, 
        base_after_vec = 1, min_after_vec = 0, max_after_vec = 1, 
        min_after_base = 0, max_after_base = 0, offset_unsigned = 0, 0, 
        scale = 33}, rt_cselib = 0x40210540, rtbit = 0x40210540, 
      rttree = 0x40210540, bb = 0x40210540, rtmem = 0x40210540}}}


s_csinh.i


-- 
 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]