🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by marvinw Wed, 11 Nov 1992 22:20
another gcc-2.3.1 -msoft-float -O2 bug
#1355
Author: marvinw
Date: Wed, 11 Nov 1992 22:20
55 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads