[Bug c++/32089] Winline reports bogus warning
mckelvey at maskull dot com
gcc-bugzilla@gcc.gnu.org
Tue Feb 19 00:59:00 GMT 2008
------- Comment #7 from mckelvey at maskull dot com 2008-02-19 00:58 -------
How can GCC conclude that a call is going to be infrequent? Doesn't that
amount to predicting the future? Also, if an object is constructed, then it
will
be destroyed. So there is almost a 100% chance of calling the destructor if the
class is used at all. Maybe I'm missing something.
It would be best for the message to say the REAL reason for not inlining,
whatever that may be.
If that is not feasible, I would be OK with just saying "inlining call
determined to be unprofitable". That is vague, but not confusing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32089
More information about the Gcc-bugs
mailing list