summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-09 21:14:15 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-09 21:14:15 +0000
commitd834564a753973e8655f45010784562c65f8b340 (patch)
tree4b18ba8c78c4acdb7b3108123cdc3146cde30ec1 /gcc/diagnostic.h
parent72b48d28234141ef1c70f59a6d3564df8ab98624 (diff)
downloadgcc-d834564a753973e8655f45010784562c65f8b340.tar.gz
2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53289 gcc/ * diagnostic.h (diagnostic_context): Add last_location. * diagnostic.c (diagnostic_initialize): Initialize it. (diagnostic_show_locus): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187355 138bc75d-0d04-0410-961f-82ee72b054a4
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;