[Bug gcov-profile/90425] [GCOV] wrong coverage for complicated function call in if expression when the abort() statement is in the body of if statement
yangyibiao at nju dot edu.cn
gcc-bugzilla@gcc.gnu.org
Fri May 10 12:40:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90425
--- Comment #2 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
(In reply to Martin Liška from comment #1)
> Confirmed, we already have a duplicate for it. It's about trailing '||'
> operator.
> Following is fine:
>
> -: 4:int
> 1: 5:main ()
> -: 6:{
> 1: 7: long a = 0x89ABCDEF;
> -: 8:
> 1: 9: if (f1(a)!=0x89000000L
> 1: 10: || f6(a)!=0x89AB0000L)
> #####: 11: __builtin_abort();
> 1: 12: __builtin_exit(0);
> -: 13:}
Got it. Thanks a lot.
More information about the Gcc-bugs
mailing list