public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/85163] [GCOV] A call statement with '==' , '||', and '&&' operators is wrongly marked as executed twice
       [not found] <bug-85163-4@http.gcc.gnu.org/bugzilla/>
@ 2020-11-27  4:32 ` sunil.kumar3 at ltts dot com
  2020-11-27  5:00 ` cs.yang.yibiao at gmail dot com
  2022-03-16  8:38 ` coenraad at wish dot org.za
  2 siblings, 0 replies; 3+ messages in thread
From: sunil.kumar3 at ltts dot com @ 2020-11-27  4:32 UTC (permalink / raw)
  To: gcc-bugs

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

Sunil Kumar <sunil.kumar3 at ltts dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sunil.kumar3 at ltts dot com

--- Comment #3 from Sunil Kumar <sunil.kumar3 at ltts dot com> ---
I have executed same code on gcc 7.4.0 and line number #11 is properly marked
as executed once.. please let me know your comment on gcc behaviour.

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

* [Bug gcov-profile/85163] [GCOV] A call statement with '==' , '||', and '&&' operators is wrongly marked as executed twice
       [not found] <bug-85163-4@http.gcc.gnu.org/bugzilla/>
  2020-11-27  4:32 ` [Bug gcov-profile/85163] [GCOV] A call statement with '==' , '||', and '&&' operators is wrongly marked as executed twice sunil.kumar3 at ltts dot com
@ 2020-11-27  5:00 ` cs.yang.yibiao at gmail dot com
  2022-03-16  8:38 ` coenraad at wish dot org.za
  2 siblings, 0 replies; 3+ messages in thread
From: cs.yang.yibiao at gmail dot com @ 2020-11-27  5:00 UTC (permalink / raw)
  To: gcc-bugs

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

Yibiao Yang <cs.yang.yibiao at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cs.yang.yibiao at gmail dot com

--- Comment #4 from Yibiao Yang <cs.yang.yibiao at gmail dot com> ---
(In reply to Sunil Kumar from comment #3)
> I have executed same code on gcc 7.4.0 and line number #11 is properly
> marked as executed once.. please let me know your comment on gcc behaviour.

Yes. We observed this incorrect behavior in gcc version 8.0.0 20170923
(experimental) [trunk revision 253118]. Besides, this problem should be also
exists in later versions.

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

* [Bug gcov-profile/85163] [GCOV] A call statement with '==' , '||', and '&&' operators is wrongly marked as executed twice
       [not found] <bug-85163-4@http.gcc.gnu.org/bugzilla/>
  2020-11-27  4:32 ` [Bug gcov-profile/85163] [GCOV] A call statement with '==' , '||', and '&&' operators is wrongly marked as executed twice sunil.kumar3 at ltts dot com
  2020-11-27  5:00 ` cs.yang.yibiao at gmail dot com
@ 2022-03-16  8:38 ` coenraad at wish dot org.za
  2 siblings, 0 replies; 3+ messages in thread
From: coenraad at wish dot org.za @ 2022-03-16  8:38 UTC (permalink / raw)
  To: gcc-bugs

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

dagelf <coenraad at wish dot org.za> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |coenraad at wish dot org.za

--- Comment #5 from dagelf <coenraad at wish dot org.za> ---
&& does not mean logical AND in gcc, it's a label. 

You should just be using &

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

end of thread, other threads:[~2022-03-16  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-85163-4@http.gcc.gnu.org/bugzilla/>
2020-11-27  4:32 ` [Bug gcov-profile/85163] [GCOV] A call statement with '==' , '||', and '&&' operators is wrongly marked as executed twice sunil.kumar3 at ltts dot com
2020-11-27  5:00 ` cs.yang.yibiao at gmail dot com
2022-03-16  8:38 ` coenraad at wish dot org.za

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