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]

Re: kernel-2.2.1-undefined references.


> > Why is that a weakness? If the compiler's optimizer says "this code runs
> > faster when not inlined" (I can think of a couple of reasons why it would
> > even be right doing that...), I'm not qualified to contradict it.
> 
> No, you have it the wrong way around.  The human should be assumed
> smarter than the compiler: if you say that this should be inlined, the
> compiler better not contradict you.

Ive been away so this is a bit of a late final reply

I think both sides are right.

o	The compiler should by default do what it feels is right
	That includes inlining and uninlining code

o	The compiler has to have a way you can tell it "or else".

	extern __inline_or_i_beat_you_to_death__ 

	or similar



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