aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-06-08 02:05:04 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-06-08 02:05:04 +0000
commitdaa8df6512c63970a3aafb7415d280e7cc720bce (patch)
tree903d8b6195abbfea4c3fb6e47c8f4811f8fa3de7 /gcc/tree.h
parent01414194b9e39651d502168c0b2279a9b73e19c5 (diff)
downloadgcc-daa8df6512c63970a3aafb7415d280e7cc720bce.zip
gcc-daa8df6512c63970a3aafb7415d280e7cc720bce.tar.gz
gcc-daa8df6512c63970a3aafb7415d280e7cc720bce.tar.bz2
tree.h (DECL_SOURCE_FILE): Improve documentation.
* tree.h (DECL_SOURCE_FILE): Improve documentation. (DECL_SOURCE_LINE): Likewise. * decl.c (duplicate_decls): Update source position information when a template function is defined. From-SVN: r42993
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 8634acb..8f29728 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1347,7 +1347,10 @@ struct tree_type
/* For a FIELD_DECL in a QUAL_UNION_TYPE, records the expression, which
if nonzero, indicates that the field occupies the type. */
#define DECL_QUALIFIER(NODE) (FIELD_DECL_CHECK (NODE)->decl.initial)
-/* These two fields describe where in the source code the declaration was. */
+/* These two fields describe where in the source code the declaration
+ was. If the declaration appears in several places (as for a C
+ function that is declared first and then defined later), this
+ information should refer to the definition. */
#define DECL_SOURCE_FILE(NODE) (DECL_CHECK (NODE)->decl.filename)
#define DECL_SOURCE_LINE(NODE) (DECL_CHECK (NODE)->decl.linenum)
/* Holds the size of the datum, in bits, as a tree expression.