This is the mail archive of the 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: On inlining in C++

On Tue, 5 Aug 2003 15:00:49 +0200 (CEST) Richard Guenther
<> wrote:

> The point is, all these "people will optimize" suggestions go against
> portability to different compilers.  

How many developers using GCC care about other compilers?
And how is portability harmed anyway? If GCC starts honouring inline
declarations and people use this feature for GCC-specific optimization,
then the worst that will happen is that a different compiler that does not
honour inline uses its built-in heuristics when compiling the program.
The thing that DOES go against portability to other compilers is stuff
like "always_inline". THAT is unportable. You're saying that offering this
as the only option of optimizing for GCC is better?????

> Optimizing inlining in a portable
> way ist just not possible

Only if you want to have portability to very exotic platforms that few
people care about and for which GCC is certainly not a very relevant
compiler in the 1st place.


p.s.: Please do not CC me. Thank you.

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