[gnu.gcc.bug] fatal signal

lsmith@CLI.COM (Larry Smith) (12/15/89)

I just got the error message:
  gcc: Program cc1 got fatal signal 11.  

It happened when I changed an asm statement to use the gcc extended
syntax. This was the first time I tried it, and I suspect I am using
it wrong, but you say "Reliable compilers never crash."

Here is an example which provokes the bug:
----------------cut here----------------
struct tty_device {
  char data, ignore1, command;
};
extern struct tty_device 
     TTY_A, /* = 0X600000 in PROM.s */
     TTY_B; /* = 0X600004 in PROM.s */

/* 
 * the following asm replaces "TTY_B.command = reg;"
 * because if reg=0, a clrb will not work right on this device register.
 */
#define readB(reg) ( {asm("	moveb #%0,%1+2" :: "n" (reg), "i" (TTY_B) ); \
		      TTY_B.command;})

main() 
{  register char c;
  c = readB(3);
}
----------------cut here----------------
Here is a log:

% gcc -v example.c
 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -Dmc68000 -Dsun -Dunix -Dm68k example.c /tmp/cca24311.cpp
0: unknown flag -v
 /usr/local/lib/gcc-cc1 /tmp/cca24311.cpp -quiet -dumpbase example.c -noreg -version -o /tmp/cca24311.s
GNU C version 1.18 (68k, MIT syntax) compiled by CC.
gcc: Program cc1 got fatal signal 11.
% 

I'm sorry, since I am a user, I don't know anything about tm.h and md.
Bill Schelter (wfs@cli.com) probably can tell you if you need it.

I am on a Sun 3/280 using SunOs 3.5.

Larry Smith
Computational Logic, Inc.