2014-12-16 Richard Biener <rguenther@suse.de>
commit852fa94e29ebd44814054f4657b7385788b0321b
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Dec 2014 18:24:55 +0000 (16 18:24 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Dec 2014 18:24:55 +0000 (16 18:24 +0000)
tree11c0289ddf7315923f3d0a6c53633d94b5314718
parent307137691983099bdfd8ecbba82128400f4a71d5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218786 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genmatch.c