Outdated recommendation?

Chris Lattner sabre@nondot.org
Fri Jun 18 02:41:00 GMT 2004


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.

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/



More information about the Gcc mailing list