From: nathan Date: Sun, 13 Oct 2019 14:46:45 +0000 (+0000) Subject: [PATCH] teach gengtype about 'mutable' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1b8379e4b6b259774f56759044cd347012cdb6;p=thirdparty%2Fgcc.git [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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276939 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44753c8b9bd7..752eda4cd538 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 1188691f785a..575274955051 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