This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Mostly rewrite genrecog
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, richard dot sandiford at arm dot com
- Date: Thu, 30 Apr 2015 14:22:03 +0200
- Subject: Re: Mostly rewrite genrecog
- Authentication-results: sourceware.org; auth=none
- References: <87egn5yis1 dot fsf at e105548-lin dot cambridge dot arm dot com> <87iocehzkk dot fsf at igel dot home> <87zj5qukmq dot fsf at e105548-lin dot cambridge dot arm dot com> <87y4l9hl8s dot fsf at igel dot home>
On Thu, Apr 30, 2015 at 2:08 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Richard Sandiford <richard.sandiford@arm.com> writes:
>
>> Andreas Schwab <schwab@linux-m68k.org> writes:
>>> Richard Sandiford <richard.sandiford@arm.com> 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 <transition>
>>>> {
>>>> decision (const test &);
>>>>
>>>> void set_parent (list_head <decision> *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."