[LLVMbugs] [Bug 15191] GCOVProfiling __gcov_flush only flushes the current compilation unit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 18 16:06:11 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15191

Bill Wendling <wendling at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |wendling at apple.com
         Resolution|---                         |FIXED

--- Comment #2 from Bill Wendling <wendling at apple.com> ---
Fixed:

Compiler-RT change:

Sending        lib/profile/GCDAProfiling.c
Transmitting file data .
Committed revision 177337.

LLVM change:

Sending        Instrumentation/GCOVProfiling.cpp
Transmitting file data .
Committed revision 177340.


Note: With the example below, there will still be no lines executed in main.c,
because the 'foo()' function never returns (and thus never gets counted). To
show that it is indeed being run, add this to the top of `main()':

  for (int i = 0; i < 1; ++i)
    printf("hello world!\n");

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130318/de7bf2aa/attachment.html>


More information about the llvm-bugs mailing list