This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15871] [3.4/3.5 Regression] g++ does not honour -fkeep-inline-functions
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2004 17:50:31 -0000
- Subject: [Bug c++/15871] [3.4/3.5 Regression] g++ does not honour -fkeep-inline-functions
- References: <20040608092610.15871.dannysmith@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-17 17:50 -------
The documentation is not clear about what should happen in C++. The
documentation for -fkeep-inline-functions specifically refers to static inlines,
and says that it has no effect on extern inline functions, in the sense of the
GNU C extension.
This ordinary C++ inline function is neither static nor extern inline, in the
sense of the GNU C extension.
However, I think that interpreting this switch as meaning that inline functions
should be kept in C++ makes sense. I will fix it, and update the documentation.
I'm not sure yet whether this should be fixed for GCC 3.4.2, or just GCC 3.5;
that will depend on how invasive the fix appears to be.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15871