This is the mail archive of the libc-alpha@sourceware.org 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: [PATCH] x86-64: Align the stack in __tls_get_addr [BZ #21609]


On 07/03/2017 10:25 PM, H.J. Lu wrote:
> I prefer to let GCC realign the stack for us.  What do you think?

I tried that first, but it does not work with all the GCC versions we
support.  We would have to add a configure check and hope that older GCC
versions never generate code which needs an aligned stack.

Furthermore, the code GCC generates for stack realignment is really bad,
and __tls_get_addr appears to be quite performance-critical because not
all callers cache the result.

Thanks,
Florian


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