summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 63eb3852958..976754ef3f2 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -172,6 +172,9 @@ struct diagnostic_context
/* Auxiliary data for client. */
void *x_data;
+ /* Used to detect that the last caret was printed at the same location. */
+ location_t last_location;
+
/* Used to detect when the input file stack has changed since last
described. */
const struct line_map *last_module;