https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87525
--- Comment #8 from taz.007 at zoho dot com --- I've been able to create a test case with just one file (not the same as the first one attached). you can lookup the build.sh to know how i've build the shared library. Once built, you can objdump -D libFLAC.so.8.3.0 | less and search for the symbol fread.constprop.5 that is compiled as an infinite loop : 000025a0 <fread.constprop.5>: 25a0: eb fe jmp 25a0 <fread.constprop.5> 25a2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 25a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi Let me know if you need more information.