🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by marvinw Wed, 11 Nov 1992 19:51
yet another gcc-2.3.1 -msoft-float -O2 bug
#1362
Author: marvinw
Date: Wed, 11 Nov 1992 19:51
76 lines
3569 bytes
There is a small C program included below which produces the problem.  The
compiler is aborting.

		Marvin Wyckoff
		Tektronix, Inc.
		503-685-2985
		marvinw@orca.wv.tek.com

---------------------------------------------------------------------------
Script started on Wed Nov 11 11:48:26 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 bug5.c
static int _CreateMHLut(hshape, param1, param2 )
int hshape;
float param1;
float param2;
{
    unsigned status;
    unsigned i,j,k;			 
    unsigned long *hist_ptr, *h_ptr;	 
    unsigned long hist_cnt;		 
    double fmax, prev_err, err;		 
    unsigned long total_pixels;		 
    float *src_pd_base, *src_pd;	 
    float *src_cdf_base, *src_cdf;	 
    float *src_map_base, *src_map;	 
    float *dst_cdf_base, *dst_cdf;	 
    unsigned long *remap_base, *remap;	 
    for( i = 0; i < hist_cnt; i++ )
	*src_pd++ = (float)(*h_ptr++) / (float)total_pixels;
    src_pd  = (float *)src_pd_base;
    src_cdf = (float *)src_cdf_base;
    *(int *)src_cdf++ = *(int *)src_pd++;
    for( i = 1; i < hist_cnt; i++, src_cdf++ )
	*src_cdf = *(src_cdf-1) + *src_pd++;
    src_cdf = (float *)src_cdf_base;
    fmax = (float) (hist_cnt - 1);		 
	remap = remap_base;
	for( k = 0, i= 0; i < hist_cnt; i++, src_cdf++ )
	    {
	    for( prev_err = 1.0,j = k; j < hist_cnt; j++ )
		{
		err = (( (double)(((float)j / fmax) - *src_cdf)) > 0.0 ? ( (double)(((float)j / fmax) - *src_cdf)) : -( (double)(((float)j / fmax) - *src_cdf)))	;
		if( err == 0.0 )
		    {
		    j++;
		    break;
		    }
		else if( err > prev_err )
		    break;
		else
		    prev_err = err;
		}
	    *remap++ = j - 1;
	    k = j - 1;				     
	    }
}
[ent] /big1/people/marvinw/nwd/tools/mips/bin/mgcc -msoft-float -O2 -v -c bug5.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 bug5.c /usr/tmp/cc019444.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/cc019444.i -mgpopt -quiet -dumpbase bug5.c -msoft-float -O2 -version -o /usr/tmp/cc019444.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