Chris Lattner wrote:
It will be quite a while before whole program optimization is good enough to prove that my_null_pointer is not referenced by anything else.
Why not just make it volatile, that way, the compiler cannot assume anything about the value.