https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58306

--- Comment #37 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to PeteVine from comment #36)
> 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

Have you added -fprofile-update=atomic to your compiler options?
Can you please provide info about your target and the compiler options you use?

Thanks,
Martin

Reply via email to