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

            Bug ID: 103666
           Summary: compiling single-file programs with -fprofile-generate
                    no longer leads to intended results
           Product: gcc
           Version: 12.0
            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: ---

The following should work but we fail to name the gcda file same way in both
builds:

jh@ryzen3:~> ~/trunk-install/bin/g++ -Ofast -march=native -fprofile-generate
tramp3d-v44.ii  -fpermissive -std=c++03
jh@ryzen3:~> ./a.out -n 5
jh@ryzen3:~> ~/trunk-install/bin/g++ -Ofast -march=native -fprofile-use
tramp3d-v44.ii  -fpermissive -std=c++03 -o a.out-use
/aux/hubicka/tramp3d-v4b.cpp: In function ‘(static initializers for
/aux/hubicka/tramp3d-v4b.cpp)’:
/aux/hubicka/tramp3d-v4b.cpp:56088:1: warning:
‘/home/jh/a.out-use-tramp3d-v44.gcda’ profile count data file not found
[-Wmissing-profile]

Reply via email to