public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "njuwy at smail dot nju.edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/100980] [GCOV]The assignment statement in the “for” structure caused the wrong coverage
Date: Mon, 04 Jul 2022 12:16:16 +0000 [thread overview]
Message-ID: <bug-100980-4-nxCq6oUkKX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100980-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100980
--- Comment #4 from Yang Wang <njuwy at smail dot nju.edu.cn> ---
(In reply to Yang Wang from comment #3)
> The coverage is correct later version (gcov 11.1.0 and 12.1.0),is it fixed?
In version 12.1.0
-: 1:#include<stdio.h>
-: 2:extern void abort(void);
-: 3:extern void exit(int);
1: 4:int main(void) {
-: 5: struct foo{
-: 6: int i0;
-: 7:};
1: 8: int b,c,d=1;
1: 9: for ((b = sizeof(struct foo {
-: 10: int i0;
-: 11: int i1;
-: 12: }));
2: 13: d; d--)
1: 14:c = sizeof(struct foo);
-: 15:}
next prev parent reply other threads:[~2022-07-04 12:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-09 3:10 [Bug gcov-profile/100980] New: " njuwy at smail dot nju.edu.cn
2021-06-10 14:50 ` [Bug gcov-profile/100980] " marxin at gcc dot gnu.org
2022-06-14 12:46 ` njuwy at smail dot nju.edu.cn
2022-06-14 15:46 ` njuwy at smail dot nju.edu.cn
2022-07-04 12:16 ` njuwy at smail dot nju.edu.cn [this message]
2022-07-04 12:23 ` marxin at gcc dot gnu.org
2022-07-04 12:23 ` marxin at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-100980-4-nxCq6oUkKX@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).