From patchwork Sun Oct 13 14:45:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1175848 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-510872-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="cG8gpXl5"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cpOzIl1v"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46rkyY6hsJz9sP3 for ; Mon, 14 Oct 2019 01:45:55 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=DWP9hMIlNfsJLvgwWnZjHqRk/iWPFebbW2oqkDy+8ZIVwdxsj1 /rFSye/Q/e+J2eclql7CJFrKD3IAIhM2Y9ZLv/vJ6ZUROs8QJNMKhk/41Mp/h8cq HPI66uguz3Ny0cqZDKHtfvl77MgDlwQDfcQ5wa9J4Sk0R1G3H6bQJHspg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=5+s/COPlTrrDPxvhlXFe7YwkCBI=; b=cG8gpXl5wJO7+634wytd yVGdPFcgo+TQYcjvBlxKGX7rnirKvv56fS3+pToVKC5MpVjEDhPI1omwAD8yzIMk PpdTRVn2TaXQt5if298+gm9ihhyX+UDrckUktoBI1qqBAdEWodM2UpvJKGC+ll3n vrrumcrmojUCe7Vsrp1k1pU= Received: (qmail 54348 invoked by alias); 13 Oct 2019 14:45:47 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 54340 invoked by uid 89); 13 Oct 2019 14:45:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Google-DKIM-Signature:sender, cid, H*F:U*nathan, H*Ad:U*nathan X-HELO: mail-qt1-f171.google.com Received: from mail-qt1-f171.google.com (HELO mail-qt1-f171.google.com) (209.85.160.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 Oct 2019 14:45:46 +0000 Received: by mail-qt1-f171.google.com with SMTP id o12so21527571qtf.3 for ; Sun, 13 Oct 2019 07:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=N7aUzKovBNXZMw0q30lLwdY+0v+IzzNcZgt10eB/mNA=; b=cpOzIl1vOOYphfFz9yDQNheQa3tPNgqkXbZygRTKkc4j8GbCGz1KZMzDS6j2OKcI8g Fj8/R20O4s5NBhzMW8QDgEgn+Ea1qkF0Bb0hLCrjWG8OOqweiWYPPvts75LdApb8y88W OCPbzvvCnXjJc9ensdYgGDqxLxERZcgXCIcdY79FyHPluFYjgcqYbthKA/UldvdvQfnq ZwNVtXI1yp0qvEbEL6KNrugc9kQKHcMfwkSMRpwP3d60mioQ1uvMM4gLjEKMF2v5PTEH liU3qqnDM1hU72Qf/8URt1o/f8e7gLQGzaA+IEuBws7I/KBZa17p3i6P6T2f0w8Cw19E 7+nA== Received: from ?IPv6:2601:181:c400:1050::4? ([2601:181:c400:1050::4]) by smtp.googlemail.com with ESMTPSA id i66sm6824566qkb.105.2019.10.13.07.45.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Oct 2019 07:45:43 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [PATCH] teach gengtype about 'mutable' Message-ID: <02a4709b-e20f-bb5d-1fd4-a216e3d627e9@acm.org> Date: Sun, 13 Oct 2019 10:45:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In constifying some more of line-map I discovered gengtype didn't know mutable. Added thusly. nathan 2019-10-13 Nathan Sidwell * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'. Index: gcc/gengtype-lex.l =================================================================== --- gcc/gengtype-lex.l (revision 275726) +++ gcc/gengtype-lex.l (working copy) @@ -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