__builtin_return_address from inline assembly on x86-64.

Ian Lance Taylor iant@google.com
Tue Feb 27 15:23:00 GMT 2007


"Alok kataria" <alokkataria1@gmail.com> writes:

> So please let me know if there its possible to do a
> __builtin_return_address from assembly without making assumptions
> regarding the "rsp".

Sure, just use an extra argument to the asm, as in
    "r" (__builtin_return_address (0))

Ian



More information about the Gcc-help mailing list