[match-and-simplify] adjust for pattern to allow multiple ids

Prathamesh Kulkarni bilbotheelffriend@gmail.com
Sun Sep 7 21:53:00 GMT 2014

Changes syntax of for pattern to:
(for op (list1...) op2 (list2...) opN (listN...)

Number of operator substitutions must be same.

* genmatch.c (peek_ident): Change id to default argument with value 0.
    (parse_for): Adjust.

* match-builtin.pd: Rewrite for-patterns to match new syntax.
* match-comparison.pd: Likewise.
* match-constant-folding.pd: Likewise.
* match-conversions.pd: Likewise.
* match-rotate.pd: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip.patch
Type: text/x-patch
Size: 11544 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140907/1847d7df/attachment.bin>

More information about the Gcc-patches mailing list