diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-05-23 16:45:08 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-06-08 14:32:35 +0200 |
commit | c60b36b977da356ea4a120ffd5e0c1fc4e1aedca (patch) | |
tree | 9f971190bf13af1ec5cc636ff04aa8d267f191f3 /gcc | |
parent | f13da289f1c330e280b7f992aca275c9dad8a511 (diff) | |
download | gcc-c60b36b977da356ea4a120ffd5e0c1fc4e1aedca.zip gcc-c60b36b977da356ea4a120ffd5e0c1fc4e1aedca.tar.gz gcc-c60b36b977da356ea4a120ffd5e0c1fc4e1aedca.tar.bz2 |
libproc_macro: Fix Tokenstream growth
TokenStream did not copy back enough old data to the new location. This
commit also add more explicit memcpy usages in order to facilitate
change to utf-8 later.
ChangeLog:
* libgrust/libproc_macro/ffistring.cc (FFIString::make_ffistring):
Add explicit sizeof and utf-8 warning.
(FFIString::clone): Add explicit sizeof and utf-8 warning.
* libgrust/libproc_macro/ident.cc (Ident::clone): Likewise.
(Ident::make_ident): Likewise.
* libgrust/libproc_macro/tokenstream.cc (TokenStream::grow):
Fix vector growth.
(TokenStream__clone): Add explicit sizeof.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions