Re: [PATCH] *(int*)0 = 0 & variations

Stefan Monnier (monnier+misc/news@tequila.cs.yale.edu)
Tue, 29 Jun 1999 11:14:04 -0400


> > If they have no side-effect, then there is no point in evaluating them with
> > NDEBUG set. Please, let's not try to hide bugs.
> If they have no side-effect, they'll compile to *NO CODE*.
> It doesn't matter what kassert does in this case.

Oh, yes it does: the compiler cannot always prove the code to be side-effect
free, else the same analysis could be used to warn of improper use of
assert.

Stefan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/