🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2754

fatal signal

#2754
From: Larry Smith
Date: Thu, 14 Dec 1989 17:43
45 lines
1784 bytes
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.
Technical Details
Message-ID: <8912141743.AA24324@anderson.CLI.COM>
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!tut.cis.ohio-state.edu!CLI.COM!lsmith

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!tut.cis.ohio-state.edu!CLI.COM!lsmith
From: lsmith@CLI.COM (Larry Smith)
Newsgroups: gnu.gcc.bug
Subject: fatal signal
Message-ID: <8912141743.AA24324@anderson.CLI.COM>
Date: 14 Dec 89 17:43:37 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 45