aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-06-27 19:19:01 +0000
committerJason Merrill <jason@redhat.com>2012-06-27 19:19:01 +0000
commit96e3d0cb573438f6b1d767e7488269048544c57e (patch)
tree3053ebe289855a223f0507adf3ac27f25007634e /gcc/tree.h
parentb22f6a63b793611ce0c1b2c515d6f223e5efc060 (diff)
comment
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@189023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 8bd0580397d..5df8b84687f 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1679,6 +1679,8 @@ struct GTY(()) tree_constructor {
(CAN_HAVE_LOCATION_P ((NODE)) ? (NODE)->exp.locus : UNKNOWN_LOCATION)
#define SET_EXPR_LOCATION(NODE, LOCUS) EXPR_CHECK ((NODE))->exp.locus = (LOCUS)
#define EXPR_HAS_LOCATION(NODE) (EXPR_LOCATION (NODE) != UNKNOWN_LOCATION)
+/* The location to be used in a diagnostic about this expression. Do not
+ use this macro if the location will be assigned to other expressions. */
#define EXPR_LOC_OR_HERE(NODE) (EXPR_HAS_LOCATION (NODE) ? (NODE)->exp.locus : input_location)
#define EXPR_FILENAME(NODE) LOCATION_FILE (EXPR_CHECK ((NODE))->exp.locus)
#define EXPR_LINENO(NODE) LOCATION_LINE (EXPR_CHECK (NODE)->exp.locus)