allow constructing a auto_vec with a preallocation, and a possibly larger actual...
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>
Sun, 14 May 2017 00:38:35 +0000 (00:38 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Sun, 14 May 2017 00:38:35 +0000 (00:38 +0000)
commita5c9f2b736f0d152289628e2ff14d1888b512244
tree0234dc61e7e025e37e28cf53905d52df3be73340
parent4b5c84f497a052cdba704492d4a4a46e21264779
allow constructing a auto_vec with a preallocation, and a possibly larger actual allocation size

This allows us to set the capacity of the vector when we construct it,
and still use a stack buffer when the size is small enough.

gcc/ChangeLog:

2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* genrecog.c (int_set::int_set): Explicitly construct our
auto_vec base class.
* vec.h (auto_vec::auto_vec): New constructor.

From-SVN: r248019
gcc/ChangeLog
gcc/genrecog.c
gcc/vec.h