Outdated recommendation?
Diego Novillo
dnovillo@redhat.com
Fri Jun 18 10:42:00 GMT 2004
On Thu, 2004-06-17 at 22:52, Chris Lattner wrote:
> Is this obsolete?
>
> "If you want a variable to be unaltered by longjmp, and you don't want to
> write volatile because old C compilers don't accept it, just take the
> address of the variable. If a variable's address is ever taken, even if
> just to compute it and ignore it, then the variable cannot go in a
> register:"
>
> It is from the bottom of:
> http://gcc.gnu.org/onlinedocs/gccint/Interface.html#Interface
>
> I imagine that this is not the case for tree-ssa any longer.
>
Only if the address is stashed in some DCEable or DSEable storage.
Otherwise it will remain addressable.
Diego.
More information about the Gcc
mailing list