navoceano%oacis.decnet@NORDA.ARPA ("OACIS::NAVOCEANO") (02/10/89)
----------------------------------------
Bug Report for GCC:
-------------------
Problem : Compiler dies with "cc1 got fatal signal 6"
1.) Version : gcc 1.32
-----------
2.) Input Program :
-----------------
#include <stdio.h>
#include <math.h>
float s_depth(fft_size, samp_rate, nom_shot_depth)
unsigned long fft_size;
float samp_rate, nom_shot_depth;
{
double delta_period, bubble_pulse_period, w_one_third, shot_depth;
float binwidth, bp_freq;
short span;
w_one_third = pow(1.87, 0.3333333333);
bp_freq = (float)1.0 / ((4.34 * w_one_third) /
(pow(((nom_shot_depth * 3.28084) + 33),(5.0/6.0))));
binwidth = samp_rate / (float)fft_size;
span = 1.0 * bp_freq / binwidth;
if ( span < 5 ) span = 5;
delta_period = 2.0 / samp_rate;
bubble_pulse_period = delta_period ;
shot_depth = (float)pow((4.34 * w_one_third / bubble_pulse_period),
(6.0 / 5.0)) - 33.0;
return((float)shot_depth);
}
3.) Command Used : gcc -O -mfpa -v -c shot_depth4.c
----------------
4.) Files used : NONE
--------------
5.) Machine(s) used :
-------------------
Sun3/280 SunOS 3.4
6.) Compiler diagnostics :
------------------------
gcc version 1.32
/usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -D__HAVE_FPA__ -Dmc68020 shot_depth4.c /tmp/cca06337.cpp
GNU CPP version 1.32
/usr/local/lib/gcc-cc1 /tmp/cca06337.cpp -quiet -dumpbase shot_depth4.c -mfpa -O -version -o /tmp/cca06337.s
GNU C version 1.32 (68k, MIT syntax) compiled by GNU C version 1.32.
gcc: Program cc1 got fatal signal 6.
6.) Notes: Doesn't give problem with -m68881