Re: [PATCH 02/15] libcpp: Fix potential unaligned access in cpp_buffer

2024-11-20 Thread Richard Biener
On Sun, Nov 3, 2024 at 11:23 PM Lewis Hyatt wrote: > > libcpp makes use of the cpp_buffer pfile->a_buff to store things while it is > handling macros. It uses it to store pointers (cpp_hashnode*, for macro > arguments) and cpp_macro objects. This works fine because a cpp_hashnode* > and a cpp_macr

[PATCH 02/15] libcpp: Fix potential unaligned access in cpp_buffer

2024-11-03 Thread Lewis Hyatt
libcpp makes use of the cpp_buffer pfile->a_buff to store things while it is handling macros. It uses it to store pointers (cpp_hashnode*, for macro arguments) and cpp_macro objects. This works fine because a cpp_hashnode* and a cpp_macro have the same alignment requirement on either 32-bit or 64-b