From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 1D47D393BC3A for ; Wed, 28 Apr 2021 18:27:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1D47D393BC3A Received: by mail-pg1-x52f.google.com with SMTP id q10so45342370pgj.2 for ; Wed, 28 Apr 2021 11:27:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=g6Gfd5+HFJ+KzQFut5s4tF7YwKUkWNEXS0C9mTqSRmA=; b=S5Q1sGox+aa3jXBaS0ZJbQq9468+wEXbp54n3ZVahdZT5UOTSZCype4SplbqTAomGI YVNL3F/G5TxwGKVG+ZI0hawTLaaxHNK+qPUDKf3FamkPXHoC8z2hfv9+BxnlykypGd5L jcZ5nbriNN2WwV48YpRqMYsOUyOB0VVM59tXMGoH4K2E3I/fL0EiZvqaB0UOSlEfosQP FcomwTZZ2UgyRhJqpdwNjA52yoSjTH5ioxkhGHNanK2rGYSyC1/Nmporu7OCfw+cKnLi OZkzYq/xl9my1ewcnIFDhiq74q7QDM+H3bAC1ALN0+UVH4m1bASaKTLwWHn58R+SQ/PS yEWg== X-Gm-Message-State: AOAM5328YoOt5RmmEE0DebZ73kJZG8C4bD45iScCZvS3kf+rsq8W6M6Q BrrJtVxyxD6bNmUG3ZufnFVkJThVqLC+aQ== X-Google-Smtp-Source: ABdhPJw41v651GruS/3xxZQsRteIEZUJarMCcFd+upfxqTblJ9E/q+FACcj/65RJ0JMmMB9H2lJusA== X-Received: by 2002:a65:6095:: with SMTP id t21mr28235179pgu.383.1619634421821; Wed, 28 Apr 2021 11:27:01 -0700 (PDT) Received: from [192.168.1.29] (65-130-82-141.slkc.qwest.net. [65.130.82.141]) by smtp.gmail.com with ESMTPSA id a1sm337744pfi.161.2021.04.28.11.27.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Apr 2021 11:27:01 -0700 (PDT) Subject: Re: [PATCH v2 01/21] libcc1: use templates to unmarshall enums To: Tom Tromey , gcc-patches@gcc.gnu.org References: <20210428010119.806184-1-tom@tromey.com> <20210428010119.806184-2-tom@tromey.com> From: Jeff Law Message-ID: Date: Wed, 28 Apr 2021 12:27:00 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210428010119.806184-2-tom@tromey.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_CSS, URIBL_CSS_A autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2021 18:27:04 -0000 On 4/27/2021 7:00 PM, Tom Tromey wrote: > Now that C++11 can be used in GCC, libcc1 can be changed to use > templates and type traits to handle unmarshalling all kinds of enums. > > libcc1/ChangeLog > 2021-04-27 Tom Tromey > > * marshall.hh (cc1_plugin::unmarshall): Use type traits. > * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads. > * marshall-c.hh: Remove. > * libcc1plugin.cc: Update includes. > * libcc1.cc: Update includes. OK jeff