This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: kernel-2.2.1-undefined references.




> On Mon, 8 Feb 1999, Joe Buck wrote:
> > 
> > `-Winline'
> >      Warn if a function can not be inlined, and either it was declared
> >      as inline, or else the `-finline-functions' option was given.
> > 
> > If you rely on inlines being performed for correct function you can use
> > that flag.
> 
> What?
> 
> Do you imply that the flag will also change code generation?
> 
> I assume not. You're just saying that "yes, the compiler will screw you,
> but now it will laugh derisively when it does so".

No, the compiler will tell you if it has failed to inline the function
(which almost never will happen, but if it does, will no longer happen
silently).

You can then fix the problem that was preventing the compiler from
inlining the function.  If you see no messages you can safely assume
that all of your functions are inlined.

> That doesn't make me any happier, and if you don't see why, then I can't
> help you.

Sorry, if you picture the compiler "screwing you" and then "laughing
derisively", perhaps the recent stress of getting the kernel release out
was a bit much and some time off will help. :-)  The compiler people
aren't plotting against you, it's just that functions can't always be
inlined.

I don't think you have a reason to be unhappy, unless you can point out
a specific function that is not being inlined.