https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88821
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 45486 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45486&action=edit patch that appears to work Plus a few additional test cases (it is necessary to split a few, because internal_pack is no longer called with -O0 with this approach).