public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/102746] New: gcov returns 0 un erroneuos incovation
@ 2021-10-14 14:44 chipitsine at gmail dot com
  2021-10-14 15:12 ` [Bug gcov-profile/102746] " marxin at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: chipitsine at gmail dot com @ 2021-10-14 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102746
           Summary: gcov returns 0 un erroneuos incovation
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chipitsine at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

repro steps:

several source files (for example, two)

main.c:

void hello(void);

void main(void){
 hello();
}

hello.c:

#include <stdio.h>

void hello(void) {
   printf("hello"); 
}


..................

build with coverage (using master branch gcc)

gcc --coverage -o hello main.c hello.c

....................

execute

./hello



executing "gcov" in erroneous way 

gcov "hello-hello.gcda  hello-main.gcda"
hello-hello.gcda  hello-main.gcno:cannot open notes file
hello-hello.gcda  hello-main.gcda:cannot open data file, assuming not executed
No executable lines

however, exit status is "0"

$ echo $?
0
$



it is hard to identify error situation when exit status is "0". I beleive it
should be "1" under such circumstances

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

end of thread, other threads:[~2021-10-19 12:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14 14:44 [Bug gcov-profile/102746] New: gcov returns 0 un erroneuos incovation chipitsine at gmail dot com
2021-10-14 15:12 ` [Bug gcov-profile/102746] " marxin at gcc dot gnu.org
2021-10-14 15:17 ` chipitsine at gmail dot com
2021-10-15  6:32 ` chipitsine at gmail dot com
2021-10-15  8:20 ` marxin at gcc dot gnu.org
2021-10-15  8:20 ` marxin at gcc dot gnu.org
2021-10-18 11:13 ` cvs-commit at gcc dot gnu.org
2021-10-18 11:14 ` marxin at gcc dot gnu.org
2021-10-18 12:11 ` chipitsine at gmail dot com
2021-10-18 12:17 ` marxin at gcc dot gnu.org
2021-10-18 12:30 ` chipitsine at gmail dot com
2021-10-19 12:56 ` marxin at gcc dot gnu.org

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).