From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14421 invoked by alias); 6 Aug 2012 12:40:23 -0000 Received: (qmail 14413 invoked by uid 22791); 6 Aug 2012 12:40:22 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Aug 2012 12:40:06 +0000 Received: by yhjj56 with SMTP id j56so2410174yhj.20 for ; Mon, 06 Aug 2012 05:40:05 -0700 (PDT) Received: by 10.68.241.228 with SMTP id wl4mr18656308pbc.51.1344256805174; Mon, 06 Aug 2012 05:40:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.4.4 with HTTP; Mon, 6 Aug 2012 05:39:44 -0700 (PDT) In-Reply-To: <501680EF.1050902@gmail.com> References: <501680EF.1050902@gmail.com> From: Laurynas Biveinis Date: Mon, 06 Aug 2012 12:40:00 -0000 Message-ID: Subject: Re: [PATCH] Follow-up to the last gengtype patch: handle DEF_VEC_A in gengtype To: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg00298.txt.bz2 Ping? 2012/7/30 Laurynas Biveinis : > I only remembered to add DEF_VEC_A handlgin to gengtype.c a second after committing the previous patch [1]. > > Here it is, done as a follow up. With some luck, this will be short-lived code because of the C++ conversion. > > Bootstrapped and regtested on x86_64 linux. OK for trunk? > > 2012-07-30 Laurynas Biveinis > > * gengtype.h (enum gc_vec_type_kind): New. > List individual vector kinds in the token codes. > * gengtype-lex.l: Handle DEF_VEC_A, DEF_VEC_O, DEF_VEC_P, > DEF_VEC_I individually. > * gengtype-parse.c (token_names): Replace "DEF_VEC_[OP]" with > individual vector token names. > (def_vec): handle vector token types separately. > (parse_file): handle the new vector token types. > * gengtype.c (note_def_vec): remove is_scalar argument, introduce > vec_type_argument instead. Create GTY option and resolve the > vector element type according to vec_type_argument value. > -- Laurynas