ndd@SUNBAR.MC.DUKE.EDU (Ned Danieley) (11/08/88)
There appears to be a bug in gcc (specifically, gcc-cc1). When compiling
the following subroutine, I get the message
gcc: Program cc1 got fatal signal 11.
Repeat By: put the following subroutine in test.c, and do
gcc -O -c -pedantic test.c
On a Sun 3/280 running SunOs 3.5, I get the above error. Note that
the subroutine doesn't make much sense; I have stripped it down as
much as possible without losing the problem. Note also that I do
get a core dump, but gcc doesn't mention it; I consider that to be
at least a mis-feature.
Ned Danieley (ndd@sunbar.mc.duke.edu)
Basic Arrhythmia Laboratory
Box 3140, Duke University Medical Center
Durham, NC 27710
(919) 684-6807 or 684-6942
-------------------------------------------------------------------
aopr_chan(ad3)
double ad3[];
{
char str[128];
int chan;
int x, y, first_c, last_c;
int i, j;
double val;
extern char volt_flg;
for (chan = first_c; (chan <= last_c) && (i < 4); i++)
for ( ; (j < 32) && (chan <= last_c); chan++)
if (((val = ad3[chan - first_c]) != 0))
if (volt_flg == 'n') {
sprintf(str,"ch %3d", chan);
print_str(str, x, y);
sprintf(str, "%5d", val);
print_str(str, x + 90, y);
}
}
-----------------------------------------------------------------