Sorry, a copy error dropped the leading digit from the commit ID I tried to paste. The link is fixed now.
That search is not very good. The log message of the linked commit is:
Quote: Fix level load hang on >=mingw32-gcc-4.7
Starting in gcc 4.7 "Windows mingw targets are using the -mms-bitfields
option by default." <http://gcc.gnu.org/gcc-4.7/changes.html>. This
causes __attribute__((packed)) not to be effective on structures that
are used to express the layout of on-disk data. In turn, that causes
piggy.c to mishandle texture loads, eventually resulting in an infinite
loop. Add a pragma pack to force the headers to pack tightly on
Windows.
As you can see, it references bitfields, so the search should have found it.
I fixed it using a #pragma directive, rather than a compiler option.