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

            Bug ID: 100744
           Summary: Undefined symbol __gcov_flush when building with
                    -fprofile-arcs
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: raffael at casagrande dot ch
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Trying to link the following simple program with `-fprofile-arcs` fails:
------------------
extern "C" void __gcov_flush();

int main() {
  __gcov_flush();
}
------------------
Command line: `g++ source.cc -fprofile-arcs`

This used to work with gcc-10.3. It seems to be a regression of gcc-11.1/trunk?

Reply via email to