This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r248019 - in /trunk/gcc: ChangeLog genrecog.c v...
- From: tbsaunde at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 14 May 2017 00:38:35 -0000
- Subject: r248019 - in /trunk/gcc: ChangeLog genrecog.c v...
Author: tbsaunde
Date: Sun May 14 00:38:35 2017
New Revision: 248019
URL: https://gcc.gnu.org/viewcvs?rev=248019&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/genrecog.c
trunk/gcc/vec.h