[llvmlinux] Builtin: stack pointer

Andreas Schwab schwab at suse.de
Thu Mar 27 10:12:05 UTC 2014

Renato Golin <renato.golin at linaro.org> writes:

> Basically, introducing the builtin: __builtin_stack_pointer() which
> will return the stack pointer register's value. There's no guarantee
> that the register will contain the information you want (for example,
> if the surrounding code uses it) and is only meant to replace the
> construct above.

Can't you use __builtin_frame_address (0) instead?


Andreas Schwab, SUSE Labs, schwab at suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

More information about the LLVMLinux mailing list