[gnu.gcc.bug] Bug in GCC 1.35

mbr@LARCH.LCS.MIT.EDU (Mark Reinhold) (07/19/89)

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