[Bug gcov-profile/103652] Producing profile with -O2 -flto and trying to consume it with -O3 -flto leads to ICEs on indirect call profiling
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 10:38:42 GMT 2021
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.
More information about the Gcc-bugs
mailing list