Article View: gnu.gcc.bug
Article #2235Gnu GCC 1.33 (plus a fix from rms) can dump core if -O is used
From: Arthur David Olson
Date: Mon, 06 Feb 1989 15:35
Date: Mon, 06 Feb 1989 15:35
41 lines
1956 bytes
1956 bytes
(We're running SunOS 4.0 on a Sun 3/110.)
Description:
Gnu GCC 1.33 (plus a fix from rms) can dump core if -O is used
Repeat-By:
Script started on Mon Feb 6 10:33:32 1989
elsie$ cat try.c
func(i, total, pointers)
char * pointers;
{
total -= i;
if (total < 0)
*pointers = i;
}
elsie$ /usr/local/bin/gcc -v -O try.c
gcc version 1.33
/usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -D__HAVE_68881__ -Dmc68020 try.c /tmp/cca06427.cpp
GNU CPP version 1.33
/usr/local/lib/gcc-cc1 /tmp/cca06427.cpp -quiet -dumpbase try.c -O -version -o /tmp/cca06427.s
GNU C version 1.33 (68k, MIT syntax) compiled by GNU C version 1.33.
/usr/local/bin/gcc: Program cc1 got fatal signal 6.
elsie$ dbx /usr/local/lib/gcc-cc1
Reading symbolic information...
Read 49288 symbols
(dbx) where
kill(0x191f, 0x6) at 0x70be4
abort() at 0x6a971
final(first = 0x8cc20, file = 0x81e20, write_symbols = NO_DEBUG, optimize = 1, prescan = 0, 0x8cc20, 0x81e20, 0x0, 0x1, 0x946ee), line 809 in "final.c"
rest_of_compilation(decl = 0x8cf4c, 0x8eb1e, 0x7), line 1454 in "toplev.c"
finish_function(), line 3509 in "c-decl.c"
yyparse(), line 245 in "bison.simple"
compile_file(name = 0x81e20 ""), line 976 in "toplev.c"
main(argc = 0, argv = 0x8cf4c, envp = 0xefffb54), line 1713 in "toplev.c"
(dbx) quit
elsie$ exit
script done on Mon Feb 6 10:34:13 1989
--
Arthur David Olson ado@ncifcrf.gov ADO is a trademark of Ampex.
Technical Details
Message-ID:
<8902061535.AA06464@elsie>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!NCIFCRF.GOV!elsie!adoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!NCIFCRF.GOV!elsie!ado From: elsie!ado@NCIFCRF.GOV (Arthur David Olson) Newsgroups: gnu.gcc.bug Subject: Gnu GCC 1.33 (plus a fix from rms) can dump core if -O is used Message-ID: <8902061535.AA06464@elsie> Date: 6 Feb 89 15:35:33 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41