From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11105 invoked by alias); 30 Apr 2015 12:22:08 -0000 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 Received: (qmail 11096 invoked by uid 89); 30 Apr 2015 12:22:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f174.google.com Received: from mail-qc0-f174.google.com (HELO mail-qc0-f174.google.com) (209.85.216.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 30 Apr 2015 12:22:06 +0000 Received: by qcpm10 with SMTP id m10so27624950qcp.3 for ; Thu, 30 Apr 2015 05:22:03 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.235.145 with SMTP id g139mr4166752qhc.81.1430396523350; Thu, 30 Apr 2015 05:22:03 -0700 (PDT) Received: by 10.229.28.132 with HTTP; Thu, 30 Apr 2015 05:22:03 -0700 (PDT) In-Reply-To: <87y4l9hl8s.fsf@igel.home> References: <87egn5yis1.fsf@e105548-lin.cambridge.arm.com> <87iocehzkk.fsf@igel.home> <87zj5qukmq.fsf@e105548-lin.cambridge.arm.com> <87y4l9hl8s.fsf@igel.home> Date: Thu, 30 Apr 2015 12:33:00 -0000 Message-ID: Subject: Re: Mostly rewrite genrecog From: Richard Biener To: Andreas Schwab Cc: "gcc-patches@gcc.gnu.org" , richard.sandiford@arm.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg02028.txt.bz2 On Thu, Apr 30, 2015 at 2:08 PM, Andreas Schwab wrote: > Richard Sandiford writes: > >> Andreas Schwab writes: >>> Richard Sandiford writes: >>> >>>> /* Represents a test and the action that should be taken on the result. >>>> If a transition exists for the test outcome, the machine switches >>>> to the transition's target state. If no suitable transition exists, >>>> the machine either falls through to the next decision or, if there are no >>>> more decisions to try, fails the match. */ >>>> struct decision : list_head >>>> { >>>> decision (const test &); >>>> >>>> void set_parent (list_head *s); >>>> bool if_statement_p (uint64_t * = 0) const; >>>> >>>> /* The state to which this decision belongs. */ >>>> state *s; >>>> >>>> /* Links to other decisions in the same state. */ >>>> decision *prev, *next; >>>> >>>> /* The test to perform. */ >>>> struct test test; >>>> }; >>> >>> ../../gcc/genrecog.c:1467: error: declaration of 'test decision::test' >>> ../../gcc/genrecog.c:1051: error: changes meaning of 'test' from 'struct test' >>> >>> Bootstrap compiler is gcc 4.3.4. >> >> Bah. Does it like "::test test" instead of "struct test test"? > > Same error. You have to use a different name I believe (or -fpermissive). Richard. > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different."