[Dri-devel] Re: OpenGL and the LinuxThreads pthread_descr structure
Jakub Jelinek
jakub@redhat.com
Fri May 17 05:43:00 GMT 2002
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
More information about the Libc-alpha
mailing list