From: Dale Johannesen Date: Mon, 31 Jan 2005 23:18:49 +0000 (+0000) Subject: extend.texi (nested functions): Fix linkage description. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=286972677eedc731d85a7758a86023b9ebdc2b08;p=gcc.git extend.texi (nested functions): Fix linkage description. 2005-01-31 Dale Johannesen * doc/extend.texi (nested functions): Fix linkage description. Clarify that static is not allowed. From-SVN: r94499 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4fa04ff95c2..e58b0ab647b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -19,6 +19,11 @@ * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no longer pick it up there. +2005-01-31 Dale Johannesen + + * doc/extend.texi (nested functions): Fix linkage description. + Clarify that static is not allowed. + 2005-01-31 Dale Johannesen * config/rs6000/darwin.md (movsf_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).