On Sun, Apr 27, 2008 at 01:38:34PM -0700, Linus Torvalds wrote:
It's not even a constant, really... What we need is
* don't fold further if that sucker would be evaluated (i.e. 0 && <...>
is folded, 0 & <...> is not)
* don't consider an integer constant expression with value 0 for
purposes of null pointer constant handling
* emit corresponding insn in linearize_expression() when we run into
such sucker.
* somewhere around the call of vrfy_flow() walk through insns in
remaining bb (we'd done dead code elimination already) and spew postponed
warning on each such insn. Probably. Assuming that I'm not entirely
confused about what's going on in that area - which is quite possible.
Folks, could somebody familiar with the backend comment on the last part?
--