public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/100744] New: Undefined symbol __gcov_flush when building with -fprofile-arcs
@ 2021-05-24 14:11 raffael at casagrande dot ch
  2021-05-24 14:22 ` [Bug gcov-profile/100744] " marxin at gcc dot gnu.org
  2021-05-24 14:25 ` raffael at casagrande dot ch
  0 siblings, 2 replies; 3+ messages in thread
From: raffael at casagrande dot ch @ 2021-05-24 14:11 UTC (permalink / raw)
  To: gcc-bugs

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gcov-profile/100744] Undefined symbol __gcov_flush when building with -fprofile-arcs
  2021-05-24 14:11 [Bug gcov-profile/100744] New: Undefined symbol __gcov_flush when building with -fprofile-arcs raffael at casagrande dot ch
@ 2021-05-24 14:22 ` marxin at gcc dot gnu.org
  2021-05-24 14:25 ` raffael at casagrande dot ch
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-24 14:22 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Note that __gcov_flush() is not part of the provided API:
https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html

We only support __gcov_reset and __gcov_dump.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gcov-profile/100744] Undefined symbol __gcov_flush when building with -fprofile-arcs
  2021-05-24 14:11 [Bug gcov-profile/100744] New: Undefined symbol __gcov_flush when building with -fprofile-arcs raffael at casagrande dot ch
  2021-05-24 14:22 ` [Bug gcov-profile/100744] " marxin at gcc dot gnu.org
@ 2021-05-24 14:25 ` raffael at casagrande dot ch
  1 sibling, 0 replies; 3+ messages in thread
From: raffael at casagrande dot ch @ 2021-05-24 14:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Raffael Casagrande <raffael at casagrande dot ch> ---
Oh, I didn't notice this change. Thanks for pointing this out!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-24 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 14:11 [Bug gcov-profile/100744] New: Undefined symbol __gcov_flush when building with -fprofile-arcs raffael at casagrande dot ch
2021-05-24 14:22 ` [Bug gcov-profile/100744] " marxin at gcc dot gnu.org
2021-05-24 14:25 ` raffael at casagrande dot ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).