This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/12076] gcov misreports coverage of return statement (for inline functions)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2003 08:02:26 -0000
- Subject: [Bug other/12076] gcov misreports coverage of return statement (for inline functions)
- References: <20030827093414.12076.r.lichtenberger@icoserve.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-28 08:02 -------
The problem at -O3, gcc inlines more functions and in this case repeat is inlined so the
return is misreported because really is not executed at all (it is a no-op). I going to say
this is a non-bug because it really is not executed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
Summary|gcov misreports coverage of |gcov misreports coverage of
|return statement |return statement (for inline
| |functions)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12076