public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/96010] New: std::make_tuple called over multiple lines reports lines as "not run"
@ 2020-06-30 18:15 loximann at gmail dot com
  2020-07-01  6:55 ` [Bug gcov-profile/96010] " marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: loximann at gmail dot com @ 2020-06-30 18:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96010
           Summary: std::make_tuple called over multiple lines reports
                    lines as "not run"
           Product: gcc
           Version: 10.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: loximann at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

I hope that the gcov file is self-explanatory:

        -:    0:Source:coverage_test.cpp
        -:    0:Graph:coverage_test.gcno
        -:    0:Data:coverage_test.gcda
        -:    0:Runs:1
        -:    1:#include <tuple>
        -:    2:
        1:    3:auto g(int, int, int)
        -:    4:{
        1:    5:    return 0;
        -:    6:}
        -:    7:
        1:    8:auto f()
        -:    9:{
        1:   10:    return g(1,
        -:   11:            2,
        1:   12:            3);
        -:   13:}
        -:   14:
        1:   15:auto h()
        -:   16:{
    #####:   17:    return std::make_tuple(1,
    #####:   18:            2,
        2:   19:            3);
        -:   20:}
        -:   21:
        1:   22:int main(int argc, char *argv[]) {
        1:   23:    f();
        1:   24:    h();
        1:   25:  return 0;
        -:   26:}

I do not know if this happens for other functions, but with that simple dummy
function the lines were annotated correctly.

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

* [Bug gcov-profile/96010] std::make_tuple called over multiple lines reports lines as "not run"
  2020-06-30 18:15 [Bug gcov-profile/96010] New: std::make_tuple called over multiple lines reports lines as "not run" loximann at gmail dot com
@ 2020-07-01  6:55 ` marxin at gcc dot gnu.org
  2020-07-01  9:51 ` loximann at gmail dot com
  2020-07-01 10:25 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-07-01  6:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-07-01

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed. It likely happens also for similar cases, note that it's not easy to
handle correctly these multiline statements.

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

* [Bug gcov-profile/96010] std::make_tuple called over multiple lines reports lines as "not run"
  2020-06-30 18:15 [Bug gcov-profile/96010] New: std::make_tuple called over multiple lines reports lines as "not run" loximann at gmail dot com
  2020-07-01  6:55 ` [Bug gcov-profile/96010] " marxin at gcc dot gnu.org
@ 2020-07-01  9:51 ` loximann at gmail dot com
  2020-07-01 10:25 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: loximann at gmail dot com @ 2020-07-01  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Sergio Losilla <loximann at gmail dot com> ---
On a side note: are these bug reports I am sending useful in their current
form? Anything else that I can do to help? (Other than actually fixing them,
because I feel awfully unqualified to even start looking...)

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

* [Bug gcov-profile/96010] std::make_tuple called over multiple lines reports lines as "not run"
  2020-06-30 18:15 [Bug gcov-profile/96010] New: std::make_tuple called over multiple lines reports lines as "not run" loximann at gmail dot com
  2020-07-01  6:55 ` [Bug gcov-profile/96010] " marxin at gcc dot gnu.org
  2020-07-01  9:51 ` loximann at gmail dot com
@ 2020-07-01 10:25 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-07-01 10:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
You're doing well, but as said, we have quite some GCOV issues that are quite
similar to this one. And it seems quite low priority to me for now.

You can inspire about what bugs we have here:
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=__open__&component=gcov-profile&list_id=273005&product=gcc

these starting with "[GCOV]".

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

end of thread, other threads:[~2020-07-01 10:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30 18:15 [Bug gcov-profile/96010] New: std::make_tuple called over multiple lines reports lines as "not run" loximann at gmail dot com
2020-07-01  6:55 ` [Bug gcov-profile/96010] " marxin at gcc dot gnu.org
2020-07-01  9:51 ` loximann at gmail dot com
2020-07-01 10:25 ` 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).