Subject: Re: tetris vs. gcc
To: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 02/11/1999 13:31:50
On Sat, 2 Jan 1999 15:53:13 +0100 (MET)  Hubert Feyrer wrote:

> 
> I've just discovered the following in src/games/tetris/tetris.c (Rev.
> 1.5, line 83+):
> 
> #ifndef mips
> 		*p++ = i <= (2 * B_COLS) || (i % B_COLS) < 2;
> #else /* work around compiler bug */
> 		*p++ = i <= (2 * B_COLS) || (i % B_COLS) < 2 ? 1 : 0;
> #endif
> 
> Can someone check if this is still needed with all the recent compiler
> changes, and remove the conditional (if no longer needed)? Would be cool!
> :)

This isn't needed any more.  "cc -O{0,1,2} -S" produces that same
assembly with both code fragments.  The code was from the original
import in 1994, so I dunno which "compiler bug" they were talking
about!

Simon.