https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69188
--- Comment #5 from anthonyfk at gmail dot com --- I forgot to mention, modifying the compile script in any of the following ways prevents the ICE from occurring: 1. Compile all sources at same optimization levels. 2. Remove -fprofile-generate. 3. Remove -flto.