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

            Bug ID: 102747
           Summary: gcov returns 0 when invoked on gcda generated by
                    previous gcc version
           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: ---

we use several gcc versions, so we do not know whether particular "gcda" was
produced by gcc-N or gcc-M.

for example, mixing gcc11 and gcc12 together:

running gcov-12 on gcda produced by gcc-11

gcov a-hello.gcda
a-hello.gcno:version 'B12R', prefer 'B20 '
a-hello.gcno:no functions found
a-hello.gcda:version 'B12R', prefer version 'B20 '
No executable lines
$ echo $?
0
$ 



I'm fine with error itself, it is expected. However I beleive exit status
should be "1"

Reply via email to