genmatch.c (parser::parser): Initialize capture_ids.
authorRichard Biener <rguenther@suse.de>
Tue, 16 Dec 2014 18:24:55 +0000 (18:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 16 Dec 2014 18:24:55 +0000 (18:24 +0000)
commitd0af2c6589e1eca2142c6fed09d741820ea96bf3
tree11c0289ddf7315923f3d0a6c53633d94b5314718
parent7e2ac29ecbf012b42442e3bf9fc143c8645ba13e
genmatch.c (parser::parser): Initialize capture_ids.

2014-12-16  Richard Biener  <rguenther@suse.de>

* genmatch.c (parser::parser): Initialize capture_ids.
(parser::parse_pattern): Properly allocate capture_ids before
using them.  Set capture_ids to zero when its lifetime is
supposed to finish.
(parser::parse_simplify): Allocate capture_ids only if
required.

From-SVN: r218786
gcc/ChangeLog
gcc/genmatch.c