https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58306
--- Comment #36 from PeteVine <tulipawn at gmail dot com> --- The original patch is still not enough it seems. I've just tried profiling the C-ray benchmark from issue #53659 (./c-ray-mt -t 32 -s 160x120 -r 8 -i sphfract -o output.ppm) and any -t (for threads) greater than 1 results in: c-ray-mt.c: In function ‘ray_sphere’: c-ray-mt.c:671:1: error: corrupted profile info: profile data is not flow-consistent } ^ c-ray-mt.c:671:1: error: corrupted profile info: number of executions for edge 12-14 thought to be -67 c-ray-mt.c:671:1: error: corrupted profile info: number of executions for edge 12-13 thought to be 456322 c-ray-mt.c: In function ‘shade’: c-ray-mt.c:671:1: error: corrupted profile info: profile data is not flow-consistent c-ray-mt.c:671:1: error: corrupted profile info: number of executions for edge 7-4 thought to be 113111929 c-ray-mt.c:671:1: error: corrupted profile info: number of executions for edge 7-8 thought to be -3827604