i370 patches
Richard Henderson
rth@cygnus.com
Sat Jul 31 22:30:00 GMT 1999
On Thu, Jul 08, 1999 at 12:02:13AM -0500, linas@linas.org wrote:
> It'll take me another week to get it all spiffed up.
Ok.
> Note that the compiler will warn me about
> if (JUMP_INSN = code)
> but not about
> if (code = JUMP_INSN)
> and so I've fallen into the habit of coding the former not the latter.
I know. It make sense, and I know quite a few other folks do
that too for the same reason. But it looks funny.
> Right, but there are some rare cases (that I can't remember) where operator
> precedence can give you unexpected results...
Look at the -Wall output -- we warn about such cases. Same for
using `=' in a boolean context, as above.
> Parenthisis will also minimize/eliminate the impact of using & when
> && was meant, not that *I* would ever make such a mistake :-)
Hehe.
r~
More information about the Gcc-patches
mailing list