https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111086
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
if (STRICT_ALIGNMENT)
warning (OPT_Wpacked, "packed attribute causes inefficient "
"alignment for %qE", name);
else
warning (OPT_Wpacked,
"packed attribute is unnecessary for %qE", name);
The warning is happening because arm is a strict alignment target that means
the target will not do a hardware unaligned load and will require load byte by
byte.
