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

--- Comment #26 from Filip Kastl <pheeck at gcc dot gnu.org> ---
Yes, the "before" is r14-5075-gc05f748218a0d5.

----

I just tried to take the gcda data and use them to compile mcf on another
machine. I also ran into

output.c:87:1: error: corrupted profile info: number of executions for edge 3-4
thought to be 1
output.c:87:1: error: corrupted profile info: number of executions for edge 3-5
thought to be -1
output.c:87:1: error: corrupted profile info: number of iterations for basic
block 5 thought to be -1

so the problem probably isn't that our sources or compilation options differ. I
used the exact same config on both machines.

I'm wondering if I'm generating the gcda files right. I have this in my SPEC
.cfg file

OPTIMIZE     = -Ofast -g -march=native -mtune=native  -flto=32

PASS1_CFLAGS     = -fprofile-generate
PASS1_CXXFLAGS   = -fprofile-generate
PASS1_FFLAGS     = -fprofile-generate
PASS1_LDFLAGS    = -fprofile-generate

PASS2_CFLAGS     = -fprofile-use
PASS2_CXXFLAGS   = -fprofile-use
PASS2_FFLAGS     = -fprofile-use
PASS2_LDFLAGS    = -fprofile-use

I run the benchmark and afterwards I go to

benchspec/CPU2006/429.mcf/build/build_peak_<name of the cfg>.0000

and copy gcda files from there.

Reply via email to