summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-31 23:18:49 +0000
committerdalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-31 23:18:49 +0000
commit557522b91354795ce9b464c91bd554f3b0e70af5 (patch)
tree1f94814cfaf9c9241abd12635050cfe9f185fa2f /gcc
parent2aaf7099e4ec5e54ea166e23540c4d11394dc83f (diff)
downloadgcc-557522b91354795ce9b464c91bd554f3b0e70af5.tar.gz
2005-01-31 Dale Johannesen <dalej@apple.com>
* doc/extend.texi (nested functions): Fix linkage description. Clarify that static is not allowed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/extend.texi4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4fa04ff95c2..e58b0ab647b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -21,6 +21,11 @@
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.
(movdf_low_di): Make work.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 8a3decd7257..47eb8a3dc4b 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -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).