This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: egcs & extern inline
Date: Wed, 10 Feb 1999 19:27:16 +1100
From: Geoff Keating <geoffk@ozemail.com.au>
> However there have been some suggestions to generate errors or
> warnings if such a function cannot be inlined.
Isn't there already a -Winline option that does exactly this?
Yes there is, but there is some talk about changing things (making
-Winline the default, or even generating an error). This would be bad
for us since it could lead to a lot of glibc bug reports that are
compiler bugs.
[I might add that in ld.so there are indeed some functions that must
be inlined or ld.so won't work on some machines.]
You mean that we let Linux kernel hackers touch our dynamic linker
:-)? Seriously, it's bad, since the compiler does not guarantee that
they are indeed inlined. If they are ``extern inlines'' and we don't
provide real defenitions than a build of ld.so will simply fail. We
can probably live with that. Otherwise, those inline functions should
be replaced by function-like macros.
Mark