http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51648
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-21 18:15:23 UTC --- Ok, so when the -fprofile-generate compiled xgcc is linked, it is enough to (assuming gcc.i from the attachment here is in /tmp/): $ rm gcc.gcda; ./xgcc -qversion $ cp -a gcc.gcda /tmp/ $ cd /tmp $ /usr/src/gcc/obj8/gcc/cc1 -fpreprocessed -quiet -quiet -dumpbase gcc.c \ -mtune=generic -march=x86-64 -g -O2 -fexceptions -fstack-protector -fprofile-use \ --param ssp-buffer-size=4 /tmp/gcc.i -o /tmp/gcc.s ../../gcc/gcc.c: In function ‘main’: ../../gcc/gcc.c:8278:1: error: corrupted profile info: profile data is not flow-consistent ../../gcc/gcc.c:8278:1: error: corrupted profile info: number of executions for edge 262-263 thought to be -1 ../../gcc/gcc.c:8278:1: error: corrupted profile info: number of executions for edge 262-1 thought to be 1