miller%gabriel.llnl.gov@LLL-CRG.LLNL.GOV (Patrick Miller) (02/16/89)
The following sample program causes a segmentation fault in gcc-cc1:
/*-----------------------------------------------------------------*/
main()
{
int el;
switch(2) {
case 0: el = 1; break;
default: el = 2;
}
}
/*-----------------------------------------------------------------*/
I'm running gcc under Sun UNIX 4.2 Release 3.4
gcc version 1.32
A sample compile follows...
% gcc -v cc.c
gcc version 1.32
/usr/local/lib/gcc/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 cc.c /tmp/cca04196.cpp
GNU CPP version 1.32
/usr/local/lib/gcc/gcc-cc1 /tmp/cca04196.cpp -quiet -dumpbase cc.c -version -o /tmp/cca04196.s
GNU C version 1.32 (68k, MIT syntax) compiled by GNU C version 1.32.
gcc: Program cc1 got fatal signal 11.
Thanks a lot...
Pat Miller
miller@lll-crg.llnl.gov
or
miller@lll-gabriel.llnl.gov