]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
extend.texi (nested functions): Fix linkage description.
authorDale Johannesen <dalej@apple.com>
Mon, 31 Jan 2005 23:18:49 +0000 (23:18 +0000)
committerDale Johannesen <dalej@gcc.gnu.org>
Mon, 31 Jan 2005 23:18:49 +0000 (23:18 +0000)
2005-01-31  Dale Johannesen  <dalej@apple.com>

* doc/extend.texi (nested functions): Fix linkage description.
Clarify that static is not allowed.

From-SVN: r94499

gcc/ChangeLog
gcc/doc/extend.texi

index 4fa04ff95c267f69c006a605f07452c5a02fde57..e58b0ab647b6282d98c4d730d16c171aee7d4ab1 100644 (file)
        * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no 
        longer pick it up there.
 
+2005-01-31  Dale Johannesen  <dalej@apple.com>
+       
+       * doc/extend.texi (nested functions): Fix linkage description.
+       Clarify that static is not allowed.
+
 2005-01-31  Dale Johannesen  <dalej@apple.com>
        
        * config/rs6000/darwin.md (movsf_low_di):  Make work.
index 8a3decd7257f0c9a4c3d10dd115affd49560e8d6..47eb8a3dc4b879512fe9df76826fe1f312d31d22 100644 (file)
@@ -449,8 +449,8 @@ bar (int *array, int offset, int size)
 @end group
 @end smallexample
 
-A nested function always has internal linkage.  Declaring one with
-@code{extern} is erroneous.  If you need to declare the nested function
+A nested function always has no linkage.  Declaring one with
+@code{extern} or @code{static} is erroneous.  If you need to declare the nested function
 before its definition, use @code{auto} (which is otherwise meaningless
 for function declarations).