This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Mostly rewrite genrecog
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: richard dot sandiford at arm dot com
- Date: Thu, 30 Apr 2015 08:58:51 +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>
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.
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."