https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98739
Bug ID: 98739
Summary: -fprofile-reproducible is broken
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
Assignee: unassigned at gcc dot gnu.org
Reporter: hubicka at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
Target Milestone: ---
-fprofile-reproducible=serial leads to:
jan@skylake:~> gcc -O2 -fprofile-reproducible=serial
gcc: error: unknown profile reproducibility method ‘=serial’
gcc: note: valid arguments to ‘-fprofile-reproducible’ are: multithreaded
parallel-runs serial; did you mean ‘serial’?
gcc: fatal error: no input files
compilation terminated.
-fprofile-reproducibleserial is accepted but I think the implementation is
broken. I think it is not enough to ignore -1 in first counter. It is also
necessary to update the merge function to do right thing if I recall correctly.