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]

egcs-200000218: Segmentation fault in cc1


I tried to compile BYTE benchmarks with gcc-2.96 20000218 and got internal
compiler error (coredump from cc1) when compiling nbench1.c.
Target is  i586-pc-linux-gnu. Preprocessed source attached

I had some .h files in MS-DOS format (\r\n at end of lines). But anyway cc1
should not crash... . After fixing .h files there were no more crash.

Andris

-----------------------   Command  -----------------------------
gcc-2.96 -v -O3 -save-temps -fomit-frame-pointer -ffast-math -march=pentium\
-mcpu=pentium -c nbench1.c
-----------------------   Output from gcc  ------------------------- 
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/cpp -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__
-D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__
-D__FAST_MATH__ -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__pentium -D__pentium__ -D__tune_pentium__ nbench1.c nbench1.i GNU CPP
version 2.96 20000218 (experimental) (cpplib)  (i386 Linux/ELF) ignoring
nonexistent directory `/usr/i586-pc-linux-gnu/include' #include "..." search
starts here: #include <...> search starts here:  /usr/local/include 
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/include  /usr/include End of search
list. In file included from nbench1.c:38:
wordcat.h:56:11: warning: no newline at end of file
 
 /usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/cc1 nbench1.i -quiet -dumpbase nbench1.c -march=pentium -mcpu=pentium -O3 -version -fomit-frame-pointer -ffast-math -o nbench1.s
GNU C version 2.96 20000218 (experimental) (i586-pc-linux-gnu) compiled by GNU C version 2.96 20000218 (experimental).
In file included from nbench1.c:36:
nmglobal.h:170: redefinition of `uint'
/usr/include/sys/types.h:130: `uint' previously declared here
nmglobal.h:171: redefinition of `ushort'
/usr/include/sys/types.h:129: `ushort' previously declared here
nmglobal.h:172: redefinition of `ulong'
/usr/include/sys/types.h:128: `ulong' previously declared here
In file included from nbench1.c:38:
wordcat.h:56: `__x' undeclared here (not in a function)
gcc-2.96: Internal compiler error: program cc1 got fatal signal 11                           
-----------------------   GDB output  ----------------------------
GNU gdb 19991213
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu"...
Core was generated by `/usr/lib/gcc-lib/i586-pc-linux-gnu/2.96/cc1 nbench1.i -quiet -dumpbase nbench1.'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x81ef977 in comptypes (type1=0x6e692074, type2=0x40019400)
    at ../../egcs-20000219/gcc/c-typeck.c:235
235         case INTEGER_TYPE:
(gdb) where
#0  0x81ef977 in comptypes (type1=0x6e692074, type2=0x40019400)
    at ../../egcs-20000219/gcc/c-typeck.c:235
#1  0x81f4f13 in digest_init (type=0x40019400, init=0x4031fc80, require_constant=1,
    constructor_constant=1) at ../../egcs-20000219/gcc/c-typeck.c:3883
#2  0x81f4931 in store_init_value (decl=0x4031e900, init=0x4031fc80)
    at ../../egcs-20000219/gcc/c-typeck.c:3883
#3  0x81eb496 in finish_decl (decl=0x4031e900, init=0x4031fc80, asmspec_tree=0x0)
    at ../../egcs-20000219/gcc/c-decl.c:3273
#4  0x81e0d6e in yyparse () at /usr/share/bison.simple:543
#5  0x804bd3c in compile_file (name=0x4010e160 "nbench1.i")
    at ../../egcs-20000219/gcc/toplev.c:3923
#6  0x804f8d1 in main (argc=13, argv=0xbffff814) at ../../egcs-20000219/gcc/toplev.c:4346
#7  0x400322e7 in __libc_start_main () from /lib/libc.so.6
(gdb) 

-------------------------

mbench1.i.bz2


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