This is the mail archive of the gcc@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]

Re: -fobey-inline (was Re: gcc and inlining)


dewar at gnat dot com (Robert Dewar) writes:

| > I agree with that.  But that is not an argument to ignore the inline
| > implied by in-class function definition:  That is part of common C++
| > styles of writing programs.
| 
| Well it might be. if typically this implicit inlining causes programs to
| slow down by excessive inlining, then the compiler is probably choosing
| wrong defaults.

Then, the same is true for "inline" specified for a function defined
out-of-class.  Which meets something that has been said earlier about
"inline" in C++. 

In fact, it is unaccurate to speak of implicit inlining for in-class
defined functions.  

We should be speaking of "implicit inlining" when the function
is defined *out-of-line* and the compiler thinks it knows better.
Or else, we'll create confusion (if we hadn't already succeeded ;-) 

-- Gaby


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