From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1359 invoked by alias); 3 Apr 2003 00:11:45 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 1349 invoked from network); 3 Apr 2003 00:11:41 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by sources.redhat.com with SMTP; 3 Apr 2003 00:11:41 -0000 Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.12.9/8.12.9) with ESMTP id h330Be3h029157 for ; Wed, 2 Apr 2003 16:11:40 -0800 (PST) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Wed, 2 Apr 2003 16:11:30 -0800 Received: from apple.com (keatge.apple.com [17.201.20.159]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h330Bcvu005478; Wed, 2 Apr 2003 16:11:38 -0800 (PST) Date: Thu, 03 Apr 2003 01:23:00 -0000 Subject: Re: Using __extension__ in a struct with a GTY(()) mark Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: gcc@gcc.gnu.org To: "Kaveh R. Ghazi" From: Geoffrey Keating In-Reply-To: <200304022300.SAA17030@caip.rutgers.edu> Message-Id: Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00110.txt.bz2 On Wednesday, April 2, 2003, at 03:00 PM, Kaveh R. Ghazi wrote: > The problem I'm having now is that I need to add the __extension__ > keyword to the struct so that it doesn't get a complaint from GCC. > Not being very fluent in bison or flex, I can't seem to get gengtype > to accept it. You want to simply ignore the __extension__, right? If so, you can put it after "const"/[^[:alnum:]_] /* don't care */ like "__extension__"/[^[:alnum:]_] /* ignore */ in gengtype-lex.l. > In the end, I'm trying to get this struct parsed by gengtype: > > struct lang_type_header GTY(()) __extension__ > { > CHAR_BITFIELD is_lang_type_class : 1; > > CHAR_BITFIELD has_type_conversion : 1; > CHAR_BITFIELD has_init_ref : 1; > CHAR_BITFIELD has_default_ctor : 1; > CHAR_BITFIELD uses_multiple_inheritance : 1; > CHAR_BITFIELD const_needs_init : 1; > CHAR_BITFIELD ref_needs_init : 1; > CHAR_BITFIELD has_const_assign_ref : 1; > }; > > Please help? > > Thanks, > --Kaveh > -- > Kaveh R. Ghazi ghazi@caip.rutgers.edu > -- Geoff Keating