https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85759
Stefan Talpalaru <stefantalpalaru at yahoo dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stefantalpalaru at yahoo dot com --- Comment #16 from Stefan Talpalaru <stefantalpalaru at yahoo dot com> --- I found a new case that is unrelated to the use of -fprofile-generate=directory or the existence of multiple *.gcda files with the same name in different directories. The problem appears in Python-2.7.15 when building the extensions with PGO, using gcc-7.3.0 or gcc-8.1.0 on Gentoo ~amd64: [...]/cpython-2.7.15/Modules/timemodule.c:1162:1: internal compiler error: in output_profile_summary, at lto-cgraph.c:705 } ^ Detailed instructions for replicating the ICE: https://gist.github.com/stefantalpalaru/a1f31b9dff6c2227999e32781741dd01 Serializing the profiling task does not help, nor does adding -fprofile-update=atomic to the profile generation phase.