Builtin: stack pointer

Renato Golin renato.golin@linaro.org
Thu Mar 27 10:38:00 GMT 2014


On 27 March 2014 10:29, Andreas Schwab <schwab@suse.de> wrote:
> Depends on what you need the value for.

Mostly unwind code that uses both FP and SP, example:

http://git.linuxfoundation.org/?p=llvmlinux/kernel.git;a=commit;h=a875939682dc43bf244bd39a356bca76ac190d77
http://git.linuxfoundation.org/?p=llvmlinux/kernel.git;a=commit;h=9fe678c3c08165ba20eb191717a29e070a323297
http://git.linuxfoundation.org/?p=llvmlinux/kernel.git;a=commit;h=5f661357016dcb28a7a21b307124a679e0c8ec06

Some times, inline asm that needs to mark the stack as used:

http://git.linuxfoundation.org/?p=llvmlinux/kernel.git;a=commit;h=96bb7f2706e70d217e84f2576db4cb30f86c13ae

cheers,
--renato



More information about the Gcc mailing list