diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-09 21:14:15 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-05-09 21:14:15 +0000 |
commit | 1b8b126f386ffff12b02f7c9cb2a00c38996f1ea (patch) | |
tree | 4b18ba8c78c4acdb7b3108123cdc3146cde30ec1 /gcc/diagnostic.h | |
parent | d21a7b447a2bdf5fe11f70827327c46472ee081a (diff) | |
download | gcc-1b8b126f386ffff12b02f7c9cb2a00c38996f1ea.zip gcc-1b8b126f386ffff12b02f7c9cb2a00c38996f1ea.tar.gz gcc-1b8b126f386ffff12b02f7c9cb2a00c38996f1ea.tar.bz2 |
re PR c++/53289 (unnecessary repetition of caret diagnostics)
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.
From-SVN: r187355
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 63eb385..976754e 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; |