* [GSoC][match-and-simplify] reject for that has no pattern defined
@ 2014-07-26 21:57 Prathamesh Kulkarni
2014-07-28 10:04 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Prathamesh Kulkarni @ 2014-07-26 21:57 UTC (permalink / raw)
To: Richard Biener, Diego Novillo, gcc-patches, Maxim Kuvyrkov
[-- Attachment #1: Type: text/plain, Size: 167 bytes --]
Reject for that has no pattern defined.
eg - (for op in plus minus)
* genmatch.c (parse_for): Reject for that has no pattern defined.
Thanks and Regards,
Prathamesh
[-- Attachment #2: foo.patch --]
[-- Type: text/x-patch, Size: 578 bytes --]
Index: genmatch.c
===================================================================
--- genmatch.c (revision 212928)
+++ genmatch.c (working copy)
@@ -2059,14 +2059,18 @@ parse_for (cpp_reader *r, source_locatio
vec<const char *> opers = vNULL;
+ const cpp_token *token;
while (1)
{
- const cpp_token *token = peek (r);
+ token = peek (r);
if (token->type != CPP_NAME)
break;
opers.safe_push (get_ident (r));
}
+ if (token->type == CPP_CLOSE_PAREN)
+ fatal_at (token, "no pattern defined in for");
+
while (1)
{
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [GSoC][match-and-simplify] reject for that has no pattern defined
2014-07-26 21:57 [GSoC][match-and-simplify] reject for that has no pattern defined Prathamesh Kulkarni
@ 2014-07-28 10:04 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2014-07-28 10:04 UTC (permalink / raw)
To: Prathamesh Kulkarni; +Cc: Diego Novillo, gcc-patches, Maxim Kuvyrkov
On Sat, Jul 26, 2014 at 10:14 PM, Prathamesh Kulkarn
<bilbotheelffriend@gmail.com> wrote:
> Reject for that has no pattern defined.
> eg - (for op in plus minus)
>
> * genmatch.c (parse_for): Reject for that has no pattern defined.
Thanks - commited.
Richard.
> Thanks and Regards,
> Prathamesh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-28 9:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26 21:57 [GSoC][match-and-simplify] reject for that has no pattern defined Prathamesh Kulkarni
2014-07-28 10:04 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).