Article View: gnu.gcc.bug
Article #1355another gcc-2.3.1 -msoft-float -O2 bug
From: marvinw
Date: Wed, 11 Nov 1992 22:20
Date: Wed, 11 Nov 1992 22:20
55 lines
2795 bytes
2795 bytes
There is a small C program included in the script below which illustrates
the problem. The compiler, cc1, aborts! It compiled with 2.2.2.
Marvin Wyckoff
Tektronix, Inc.
503-685-2985
---------------------------------------------------------------------------
Script started on Wed Nov 11 14:13:51 1992
[ent] cat config.status
#!/bin/sh
# GCC was configured as follows:
../configure --host=mips --target=mips-mips-bsd
echo host=mips-mips-none target=mips-mips-bsd build=mips-mips-none
[ent] uname -a
enterprise enterprise 5.0 RISCos mips
[ent] cat b.c
static int PointStatsFloat(min,max,mean,var)
double *min;
double *max;
double *mean;
double *var;
{
float *pel_ptr;
int pxlstride;
float value;
float lclmin;
float lclmax;
int count;
int sum = 0;
int sumsqr = 0;
value = *pel_ptr;
if (value > lclmax) lclmax = value;
if (value < lclmin) lclmin = value;
sum += value;
sumsqr += value * value;
pel_ptr += pxlstride;
*min = lclmin;
*max = lclmax;
*mean = (double)sum / (double)count;
*var = (sumsqr-((double)(sum*sum)/(double)count))/(double)(count-1);
return( 0 );
}
[ent] gcc -msoft-float -O2 -v -c b.c
gcc version 2.3.1
/big1/people/marvinw/nwd/tools/mips/lib/gcc-lib/mips-mips-bsd/2.3.1/cpp -lang-c -v -undef -D__GNUC__=2 -Dmips -Dunix -Dhost_mips -DMIPSEB -DR3000 -DSYSTYPE_BSD43 -D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000 -D_SYSTYPE_BSD43 -D__mips__ -D__unix__ -D__host_mips__ -D__MIPSEB__ -D__R3000__ -D__SYSTYPE_BSD43__ -D___mips__ -D___unix__ -D___host_mips__ -D___MIPSEB__ -D___R3000__ -D___SYSTYPE_BSD43__ -D__mips -D__unix -D__host_mips -D__MIPSEB -D__R3000 -D__SYSTYPE_BSD43 -D___mips -D___unix -D___host_mips -D___
MIPSEB -D___R3000 -D___SYSTYPE_BSD43 -D__OPTIMIZE__ -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C b.c /usr/tmp/cc027816.i
GNU CPP version 2.3.1 [AL 1.1, MM 28] RISC-OS BSD Mips
/big1/people/marvinw/nwd/tools/mips/lib/gcc-lib/mips-mips-bsd/2.3.1/cc1 /usr/tmp/cc027816.i -mgpopt -quiet -dumpbase b.c -msoft-float -O2 -version -o /usr/tmp/cc027816.s
GNU C version 2.3.1 [AL 1.1, MM 28] RISC-OS BSD Mips compiled by CC.
/big1/people/marvinw/nwd/tools/mips/bin/mgcc: Internal compiler error: program cc1 got fatal signal 4
Technical Details
Message-ID:
<9211112220.AA19289@intrepid18.WV.TEK.COM_>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!intrepid18.wv.tek.COM!marvinwShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!intrepid18.wv.tek.COM!marvinw From: marvinw@intrepid18.wv.tek.COM Subject: another gcc-2.3.1 -msoft-float -O2 bug Message-ID: <9211112220.AA19289@intrepid18.WV.TEK.COM_> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 11 Nov 1992 22:20:33 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 52