This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: flag_external and DECL_EXTERNAL documentation
- To: Lars Brinkhoff <lars at nocrew dot org>
- Subject: Re: PATCH: flag_external and DECL_EXTERNAL documentation
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Wed, 31 Jan 2001 20:55:54 +1100
- Cc: gcc-patches at gcc dot gnu dot org
- References: <851ytk5ar9.fsf@junk.nocrew.org>
On 31-Jan-2001, Lars Brinkhoff <lars@nocrew.org> wrote:
> +++ tree.h 2001/01/31 09:27:03
> @@ -1418,9 +1425,10 @@
> /* Language-specific decl information. */
> #define DECL_LANG_SPECIFIC(NODE) (DECL_CHECK (NODE)->decl.lang_specific)
>
> -/* In a VAR_DECL or FUNCTION_DECL,
> - nonzero means external reference:
> - do not allocate storage, and refer to a definition elsewhere. */
> +/* In a VAR_DECL, nonzero means external reference:
> + do not allocate storage, and refer to a definition elsewhere.
> + In a FUNCTION_DECL, zero means that the function is declared auto
> + inside a function body. */
> #define DECL_EXTERNAL(NODE) (DECL_CHECK (NODE)->decl.external_flag)
That documentation ("declared auto") is too C-specific.
How about the following instead?
In a FUNCTION_DECL, zero means that the function is a nested function,
i.e. one defined inside another function body, with access to the
containing function's local variables.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.