Introduce TRY_STATIC_TLS macro, used in FR-V

Alexandre Oliva aoliva@redhat.com
Wed Feb 9 09:57:00 GMT 2005


This patch introduces TRY_STATIC_TLS, a macro that can be used to test
whether a module's TLS block is in the static TLS block, or can be
assigned there.

If you use a sufficiently-recent version of GCC and never call
TRY_STATIC_TLS, the new static intermediate function will be fully
inlined into the single caller, without any performance hit
whatsoever.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-try-allocate-static-tls.patch
Type: text/x-patch
Size: 1746 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20050209/096e402f/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Libc-hacker mailing list