http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038
--- Comment #17 from Martin Liška <marxin.liska at gmail dot com> --- I tried to apply suggested patch, but following gcc_assert was thrown: https://github.com/marxin/gcc/blob/master/gcc/lto/lto-partition.c#L564 Callstack: [build CXX] store/source/stortree.cxx lto1: internal compiler error: in lto_balanced_map, at lto/lto-partition.c:566 0x52004f lto_balanced_map() ../../gcc/lto/lto-partition.c:566 0x516c0e do_whole_program_analysis ../../gcc/lto/lto.c:3201 0x516c0e lto_main() ../../gcc/lto/lto.c:3341 lto-partition.c:566 refers to the github link