[Bug gcov-profile/85243] [GCOV] A return statement in the if(0) block is wrongly marked as executed when prefixed with an array declaration statement and followed by a "for(;cond-expression;) return; " statement when they are in a dependent block in gcov

yangyibiao at nju dot edu.cn gcc-bugzilla@gcc.gnu.org
Fri Apr 6 01:35:00 GMT 2018


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

--- Comment #1 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
When:

1. removing Line #3 and Line #9, i.e., the { } block
or 
2. changing "for(;a<2;)" to "for(;1;)" 
or
3. removing Line #4

the result are both  correct.


More information about the Gcc-bugs mailing list