GCC 2.95.2 Alpha 21264 OSF Floating exception error at executiontime with -O2

Stephen L Moshier moshier@mediaone.net
Fri Dec 31 20:54:00 GMT 1999


> gcc bug2.c -O2 -lm
> ./a.out
> ...    Floating exception

It may not be worth trying to analyze this program because it
seems to suffer from numerous pointer aliasing problems.

	hx = *(1+(int*)& x ) ; lx = *(int*)& x  ;
	hy = *(1+(int*)& y ) ; ly = *(int*)& y  ;
	    *(int*)& t1   = 0;
		{ax *= two53; n -= 53; ix = *(1+(int*)& ax ) ; }
	    *(1+(int*)& ax )  = ix;
	    *(int*)& s_h   = 0;
	    *(1+(int*)& t_h ) =((ix>>1)|0x20000000)+0x00080000+(k<<18); 
	    *(int*)& t_h   = 0;
	    *(int*)& p_h   = 0;
	    *(int*)& t1   = 0;
	*(int*)& y1   = 0;
	j = *(1+(int*)& z ) ;
	i = *(int*)& z  ;
	*(int*)& t   = 0;
	j  = *(1+(int*)& z ) ;
	else *(1+(int*)& z )  += (n<<20);



More information about the Gcc-bugs mailing list