diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-05-18 16:18:58 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-06-08 14:32:35 +0200 |
commit | f13da289f1c330e280b7f992aca275c9dad8a511 (patch) | |
tree | f5197e6b47e39ea6004ca5df4389b78ef1702873 /gcc | |
parent | 118518e2bac1c4671173f0205e0d1369d0b1b384 (diff) | |
download | gcc-f13da289f1c330e280b7f992aca275c9dad8a511.zip gcc-f13da289f1c330e280b7f992aca275c9dad8a511.tar.gz gcc-f13da289f1c330e280b7f992aca275c9dad8a511.tar.bz2 |
libproc_macro: Fix capacity update in tokenstream
The capacity was not updated on tokenstream grow. This commit also add a
new mechanism to prevent a tokenstream to grow with a zero delta capacity.
ChangeLog:
* libgrust/libproc_macro/tokenstream.cc (TokenStream::grow): Add
minimum growing capacity.
(TokenStream::push): Change condition.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions