schmidt@POMPE.ICS.UCI.EDU ("Douglas C. Schmidt") (01/17/89)
Hi,
Gcc 1.32 gets a fatal signal for the following program:
----------------------------------------
main () {
int i = 10;
int j = 11;
printf ( "i = %d, j = %d\n", i, j);
/* exchange the values of i and j */
asm ("exg %2,%0" : "+d" (i) : "0" (i), "+d" (j));
printf ( "i = %d, j = %d\n", i, j);
}
----------------------------------------
Here are the diagnostics:
----------------------------------------
gcc version 1.32
/usr/public/lib/gcc/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun
-Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020
asm-bug.1.32.c /tmp/cca12713.cpp
GNU CPP version 1.32
/usr/public/lib/gcc/gcc-cc1 /tmp/cca12713.cpp -quiet -dumpbase
asm-bug.1.32.c -version -o /tmp/cca12713.s
GNU C version 1.32 (68k, MIT syntax) compiled by GNU C version 1.32.
/usr/public/gcc: Program cc1 got fatal signal 6.
----------------------------------------
Doug