From: kunst AT prl DOT philips DOT nl Subject: Re: DJGCC compile bug report To: stephan AT eng DOT tau DOT ac DOT il Date: Mon, 5 Sep 1994 18:50:59 +0100 (METDST) Cc: boettcher AT vxdesy DOT desy DOT de, djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list) Stephan I. B"ottcher (stephan AT eng DOT tau DOT ac DOT il) writes: > > DJGCC aborts with "Segmentation violation" fatal signal > after a parser error message. > > Please forward to DJ Delorie, if you feel he's responsible. > It's MS-DOS after all. > > ---------------------------------------------------------------------------- > tst.c > ---------------------------------------------------------------------------- > main() > { > double t, v, *T, *C; > int n, nn, i; > > for (nn=n-1; nn>0; nn--) for(i=0; i if (T[i]>T[nn]) { > t=T[i],T[i]=T[nn],T[nn]=t; > v=C[i],C[i]=C[nn],C[nn]=v; > } > } > ---------------------------------------------------------------------------- > gcc -v -O2 tst.c -c > ---------------------------------------------------------------------------- Reading specs from /djgpp/lib/specs gcc version 2.6.0 /djgpp/bin/cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=6 -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS -D__OPTIMIZE__ tst.c c:/tmp/cc000042 GNU CPP version 2.6.0 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: /djgpp/contrib/pdcurses/include /djgpp/inc /djgpp/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.6.0/include /usr/include End of search list. /djgpp/bin/cc1.exe c:/tmp/cc000042 -quiet -dumpbase tst.c -O2 -version -o c:/tmp/cca00042 GNU C version 2.6.0 (80386, BSD syntax) compiled by GNU C version 2.6.0. tst.c: In function `main': tst.c:8: parse error before `_' Segmentation violation in pointer 0x0000000f at d8:d813d eax=001255f0 ebx=00125540 ecx=00125628 edx=00000003 esi=00000004 edi=0006eced ebp=7ffff41c esp=7ffff408 cs=d8 ds=48 es=48 fs=48 gs=38 ss=48 cr2=0000000f Call frame traceback EIPs: 0x000d813d 0x000d8192 0x000d9b92 0x000d80cc 0x0002c1a9 0x000165bd 0x00007401 0x000286d9 0x0002d3eb > ----------------------------------------------------------------------------