🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #480

Bug in GCC 1.35 (Vax) - Illegal instruction

#480
From: Mark Reinhold
Date: Wed, 19 Jul 1989 16:08
34 lines
1384 bytes
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
Technical Details
Message-ID: <8907191608.AA06595@larch.LCS.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!LARCH.LCS.MIT.EDU!mbr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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