https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103147
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think it makes sense to ignore -fpack-struct for the intrinsic API/ABI
defined types. OTOH using the option in general doesn't make much sense so an
#if __GCC_PACK_STRUCT
#error "do not use -fpack-struct with arm_neon.h"
#endif
in those headers might make sense as well. Alternatively
#pragma GCC push_options
#pragma GCC optimize("no-pack-struct")
...
#pragma GCC pop_options
around the header contents might work as well.
Maybe the simulate_record_decl should ignore -fpack-struct in general.