genmatch.c (parser::peek, [...]): Add argument to tell how many tokens to peek ahead...
authorRichard Biener <rguenther@suse.de>
Wed, 15 Jul 2015 08:35:15 +0000 (08:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 Jul 2015 08:35:15 +0000 (08:35 +0000)
commit64d3a1f040ce15fc5941da2d5f1f79b7f085ebf1
tree507b45542db33a685cd0956de8a295ab1a81916a
parenta16bca311ae96780b64f3652538e9b22ccee54e6
genmatch.c (parser::peek, [...]): Add argument to tell how many tokens to peek ahead (default 1).

2015-07-15  Richard Biener  <rguenther@suse.de>

* genmatch.c (parser::peek, parser::peek_ident): Add argument
to tell how many tokens to peek ahead (default 1).
(parser::eat_token, parser::eat_ident): Return token consumed.
(parser::parse_result): Parse new switch statement.
* match.pd: Use case statements where appropriate.

From-SVN: r225809
gcc/ChangeLog
gcc/genmatch.c
gcc/match.pd