aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-05-23 16:45:08 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-06-08 14:32:35 +0200
commitc60b36b977da356ea4a120ffd5e0c1fc4e1aedca (patch)
tree9f971190bf13af1ec5cc636ff04aa8d267f191f3 /gcc
parentf13da289f1c330e280b7f992aca275c9dad8a511 (diff)
downloadgcc-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