This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [match-and-simplify] allow 't' only in user-defined predicates
- From: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>
- To: rguenther at suse dot de, gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Dec 2014 20:02:30 +0530
- Subject: Re: [match-and-simplify] allow 't' only in user-defined predicates
- Authentication-results: sourceware.org; auth=none
- References: <CAAgBjM=p2ooLRXqzV1-RMJRn-_gkxQxs-PaNoZQVAA_JuNUWCw at mail dot gmail dot com>
sorry for the noise. I sent it just before our conversation on IRC.
On 16 December 2014 at 19:58, Prathamesh Kulkarni
<prathamesh.kulkarni@linaro.org> wrote:
> This patch rejects 't' outside user-defined predicates.
>
> 2014-12-16 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
>
> * genmatch.c (parser::parsing_match): New.
> (parser::parser): Initialize parsing_match to false.
> (parser::parse_pattern): Reset parsing_match when parsing
> user-defined predicate.
> (parser::parse_c_expr): Check if 't' is used when parsing_match is set.
>
> Thanks,
> Prathamesh