PATCH: Use RSP_LP in CURRENT_STACK_FRAME

Richard Henderson rth@twiddle.net
Mon Mar 19 22:11:00 GMT 2012


On 03/19/12 14:34, H.J. Lu wrote:
>  #define CURRENT_STACK_FRAME \
> -  ({ char *frame; asm ("movq %%rsp, %0" : "=r" (frame)); frame; })
> +  ({ char *frame; asm ("mov %%" RSP_LP ", %0" : "=r" (frame)); frame; })

I'm pretty sure

  ({ register void *esp __asm__("esp"); esp; })

will work without the unneeded copy.


r~



More information about the Libc-alpha mailing list