[Bug gcov-profile/85273] [GCOV] return statement in else block of if(1) statement when there is an array declaration statement and a goto statement in gcov

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


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

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 is following:

main ()
{
  int c[1];
  int D.1905;
  int _1;

  <bb 2> :
b:

  <bb 3> :
  _1 = 0;
  c ={v} {CLOBBER};

  <bb 4> :
<L6>:
  return _1;

}

so again it's folded away.


More information about the Gcc-bugs mailing list