aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-22 20:36:10 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-22 20:36:10 +0000
commit4a5b68a2f743ff0742b64c97bb75e6ee0c3c1471 (patch)
tree2ae21a5cad4b86f0223248b6d989593f99c8520f /gcc/cpplib.h
parenta165f034f9475245783ff7949b28ee3134bcc21a (diff)
downloadgcc-4a5b68a2f743ff0742b64c97bb75e6ee0c3c1471.zip
gcc-4a5b68a2f743ff0742b64c97bb75e6ee0c3c1471.tar.gz
gcc-4a5b68a2f743ff0742b64c97bb75e6ee0c3c1471.tar.bz2
cpplex.c (trigraph_ok): Ensure we don't warn twice.
* cpplex.c (trigraph_ok): Ensure we don't warn twice. * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs. From-SVN: r37669
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index 5922f94..91cca90 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -282,6 +282,10 @@ struct cpp_buffer
/* Line number at line_base (above). */
unsigned int lineno;
+ /* Because of the way the lexer works, -Wtrigraphs can sometimes
+ warn twice for the same trigraph. This helps prevent that. */
+ const unsigned char *last_Wtrigraphs;
+
/* True if we have already warned about C++ comments in this file.
The warning happens only for C89 extended mode with -pedantic on,
or for -Wtraditional, and only once per file (otherwise it would