I think it is fine to put this in now, the dl-tls.c change that is. (The asm I would rather hold off on for now.) But can you try internal_function (i.e. regparm) on the new functions and see if that helps more? Also the function definitions should have comments mentioning why they should not be inlined, etc.