https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103652
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- > You need to disable those to build multithreaded programs like clang. Well, I'm specifically speaking about: error: the control flow of function ‘BZ2_compressBlock’ does not match its profile data (counter ‘arcs’) this type of errors should not happen even in a multi-threaded programs. > I think you can produce testcase easily by making a function with one > indirect call for train run and many indirect calls in profile-use run. > > I have patch to avoid the buffer overflow - can send it after getting to > office. Sure, please send it.