[gnu.gcc.bug] gcc 1.28/386 bug

james@bigtex.cactus.org (James Van Artsdalen) (10/19/88)

The following demonstrates a bug in 1.28 on the 386.  I can't bring up
1.29 or 1.30 to try it there.  This was found by Tony Overfield: replies
to me.

/tmp> cat tmp.c
struct {
  int a, b;
} array[50];

int
bug(s, d, i)
int s, d, i;
{
  while (i > 0) {
    i--;
    array[d + i] = array[s + i];
  }
}
/tmp> gcc -v -O -c tmp.c
gcc version 1.28
 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dunix -Di386 -D__OPTIMIZE__ tmp.c /tmp/cca00048.cpp
GNU CPP version 1.28
 /usr/local/lib/gcc-cc1 /tmp/cca00048.cpp -quiet -dumpbase tmp.c -O -version -o /tmp/cca00048.s
GNU C version 1.28 (80386, ATT syntax) compiled by GNU C version 1.28.
gcc: Program cc1 got fatal signal 6.
(ERR:1)
/tmp> 
-- 
James R. Van Artsdalen      james@bigtex.cactus.org      "Live Free or Die"
Home: 512-346-2444 Work: 338-8789       9505 Arboretum Blvd Austin TX 78759