diff options
author | James E Wilson <wilson@specifixinc.com> | 2004-07-06 18:19:16 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2004-07-06 11:19:16 -0700 |
commit | 37bcf311cf08d695ad850647cc757e637e1e59c0 (patch) | |
tree | 968e5cf4cc0ba6f7ef1d1f6aa5fa144c2d88120b | |
parent | a064479c835ec6c7aa02ab12a6369535d6453188 (diff) | |
download | gcc-37bcf311cf08d695ad850647cc757e637e1e59c0.zip gcc-37bcf311cf08d695ad850647cc757e637e1e59c0.tar.gz gcc-37bcf311cf08d695ad850647cc757e637e1e59c0.tar.bz2 |
Delete obsolete doc pointed out by Chris Lattner.
* doc/interface.texi (longjmp and automatic variables): Delete
paragraph recommending taking the address of a variable.
From-SVN: r84160
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/interface.texi | 14 |
2 files changed, 5 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c65170..9f2d1c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-06 James E Wilson <wilson@specifixinc.com> + + * doc/interface.texi (longjmp and automatic variables): Delete + paragraph recommending taking the address of a variable. + 2004-07-06 Nathan Sidwell <nathan@codesourcery.com> * vec.h (VEC_embedded_alloc): Remove. diff --git a/gcc/doc/interface.texi b/gcc/doc/interface.texi index b55293d..f6fdc32 100644 --- a/gcc/doc/interface.texi +++ b/gcc/doc/interface.texi @@ -69,17 +69,3 @@ values after a @code{longjmp}. And this is all GCC promises to do, because it is very difficult to restore register variables correctly, and one of GCC's features is that it can put variables in registers without your asking it to. - -If you want a variable to be unaltered by @code{longjmp}, and you don't -want to write @code{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: - -@smallexample -@{ - int careful; - &careful; - @dots{} -@} -@end smallexample |