aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2019-10-13 14:46:45 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2019-10-13 14:46:45 +0000
commitad671098740b0dc798a89bc55833088f3948038b (patch)
tree333f012cdf0475a618daad27f41fbc9769597406
parent19400cb96ce8fde3268d0b476d4d3c1efe3d3728 (diff)
downloadgcc-ad671098740b0dc798a89bc55833088f3948038b.zip
gcc-ad671098740b0dc798a89bc55833088f3948038b.tar.gz
gcc-ad671098740b0dc798a89bc55833088f3948038b.tar.bz2
[PATCH] teach gengtype about 'mutable'
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg00942.html In constifying some more of line-map I discovered gengtype didn't know mutable. Added thusly. * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'. From-SVN: r276939
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gengtype-lex.l2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 44753c8..752eda4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-10-13 Nathan Sidwell <nathan@acm.org>
+
+ * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
+
2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* doc/sourcebuild.texi (Test Directives, Add Options): Remove
diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l
index 1188691..5752749 100644
--- a/gcc/gengtype-lex.l
+++ b/gcc/gengtype-lex.l
@@ -58,7 +58,7 @@ ITYPE {IWORD}({WS}{IWORD})*
/* Include '::' in identifiers to capture C++ scope qualifiers. */
ID {CID}({HWS}::{HWS}{CID})*
EOID [^[:alnum:]_]
-CXX_KEYWORD inline|public:|private:|protected:|template|operator|friend|static
+CXX_KEYWORD inline|public:|private:|protected:|template|operator|friend|static|mutable
%x in_struct in_struct_comment in_comment
%option warn noyywrap nounput nodefault perf-report