This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [Dri-devel] Re: OpenGL and the LinuxThreads pthread_descr structure
On Fri, May 17, 2002 at 01:17:22PM +0100, Keith Whitwell wrote:
> The __indirect stuff is rarely used.
Ok, fine. But if it is rarely used, why isn't it -fpic?
Few more random things which might help the drivers:
1) using fprintf (stderr, ...) all around is a bad idea,
that means 2 runtime relocations for each when not -fpic, much better
take it offline into a separate .hidden function which will call
vfprintf
2) use __builtin_expect if you know better than the compiler what's likely
and what is unlikely executed
Jakub