This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [match-and-simplify] fix segfault in parser::parse_for
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 29 Oct 2014 14:31:02 +0100
- Subject: Re: [match-and-simplify] fix segfault in parser::parse_for
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsBnhxmw1VwNj0b2UrxsxJpkZ=e9MC1T2goYNbCbF+X0ng at mail dot gmail dot com>
On Wed, Oct 29, 2014 at 2:01 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> genmatch segfaults if user-defined operator is not specified.
>
> eg:
> (for (oper1 oper2...)
> pattern)
>
> * genmatch.c
> (parser::parse_for): Call peek instead of peek_ident.
Thanks - applied.
Richard.
> Thanks,
> Prathamesh