This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15871] [3.4/3.5 Regression] g++ does not honour -fkeep-inline-functions


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]