This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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