Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!LARCH.LCS.MIT.EDU!mbr From: mbr@LARCH.LCS.MIT.EDU (Mark Reinhold) Newsgroups: gnu.gcc.bug Subject: Bug in GCC 1.35 (Vax) - Illegal instruction Message-ID: <8907191608.AA06595@larch.LCS.MIT.EDU> Date: 19 Jul 89 16:08:14 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 34 GCC version 1.35 built for a Vax (tm-vax.h, vax.md) running on a Vax 8600 under 4.3BSD with the input shown below: % gcc -v -O -c bug.c gcc version 1.35 /usr/site/lib/gcc-cpp -v -undef -D__GNUC__ -Dvax -Dunix -D__vax__ -D__unix__ -D__OPTIMIZE__ bug.c /tmp/cc006432.cpp GNU CPP version 1.35 /usr/site/lib/gcc-cc1 /tmp/cc006432.cpp -quiet -dumpbase bug.c -O -version -o /tmp/cc006432.s GNU C version 1.35 (vax) compiled by GNU C version 1.35. gcc: Program cc1 got fatal signal 4. -- bug.c ---------------------------------------------------------------------- #define tfmsize 20000 typedef unsigned char byte; byte zzzaa[tfmsize + 1001]; #define tfm (zzzaa + 1000) void foo (); void docharacters () { byte c; foo (tfm[4 * c] % 16); } ------------------------------------------------------------------------------- Mark Reinhold mbr@lcs.mit.edu MIT Laboratory for Computer Science (617)-253-3538