[Bug gcov-profile/85218] [GCOV] A return statement in the if(0) block is wrongly marked as executed when there is an array index and an {array declare statement} around it in gcov

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 24 13:34:00 GMT 2018


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
CFG:

Released 0 names, 0.00%, removed 0 holes
main ()
{
  int c[1];
  int b[1];
  int D.1904;
  int _3;

  <bb 2> :
  b[0] = 0;

  <bb 3> :
  _3 = 1;
  b ={v} {CLOBBER};

  <bb 4> :
<L4>:
  return _3;

}

so there's no body due to folding.


More information about the Gcc-bugs mailing list