CALL_THREAD_FCT usage

Florian Weimer fweimer@redhat.com
Tue Apr 4 11:59:00 GMT 2017


On 03/31/2017 09:15 PM, Adhemerval Zanella wrote:
> While implementing the C11 thread support I noted x86 is the only architecture
> that actually defines CALL_THREAD_FCT.  The 32 bits version seems to define it
> to explicit align the stack to 16 bytes before call the user provided symbol,
> while 64 and x32 seems to just make a function call. Do we still really need
> such macro for x86?

I don't think so.  Stack alignment is handled in the clone 
implementation itself.  The inline assembly seems to lack a couple of 
clobbers, so I'd suggest to get rid of it.

I don't think x32 requires CALL_THREAD_FCT, either.

Thanks,
Florian



More information about the Libc-alpha mailing list