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: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Subject: Re: PATCH: flag_external and DECL_EXTERNAL documentation
- From: Lars Brinkhoff <lars dot spam at nocrew dot org>
- Date: 31 Jan 2001 11:30:44 +0100
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: nocrew
- References: <851ytk5ar9.fsf@junk.nocrew.org> <20010131205553.A9323@hg.cs.mu.oz.au>
Fergus Henderson <fjh@cs.mu.oz.au> writes:
> That documentation ("declared auto") is too C-specific. How about
> the following instead?
Sure!
2001-01-31 lars brinkhoff <lars@nocrew.org>
* tree.h (DECL_EXTERNAL): update comment.
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.222
diff -u -r1.222 tree.h
--- tree.h 2001/01/30 01:38:41 1.222
+++ tree.h 2001/01/31 10:29:03
@@ -1418,11 +1418,17 @@
/* 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 a nested function,
+ i.e. one defined inside another function body, with access to the
+ containing function's local variables. */
#define DECL_EXTERNAL(NODE) (DECL_CHECK (NODE)->decl.external_flag)
/* In a VAR_DECL for a RECORD_TYPE, sets number for non-init_priority
initializatons. */
#define DEFAULT_INIT_PRIORITY 65535