From ad671098740b0dc798a89bc55833088f3948038b Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Sun, 13 Oct 2019 14:46:45 +0000 Subject: [PATCH] [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 --- gcc/ChangeLog | 4 ++++ gcc/gengtype-lex.l | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44753c8b9bd..752eda4cd53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-10-13 Nathan Sidwell + + * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'. + 2019-10-13 Rainer Orth * doc/sourcebuild.texi (Test Directives, Add Options): Remove diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l index 1188691f785..57527495505 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 -- 2.30.2