This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Builtin: stack pointer
- From: Renato Golin <renato dot golin at linaro dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc <gcc at gcc dot gnu dot org>, "Compiling the Linux Kernel with Clang/LLVM" <llvmlinux at lists dot linuxfoundation dot org>
- Date: Thu, 27 Mar 2014 10:25:43 +0000
- Subject: Re: Builtin: stack pointer
- Authentication-results: sourceware.org; auth=none
- References: <CAMSE1kc3FJOq+mh=AD-FQhrGW+aVpVkWFdhfHCM+c=ZgN6Kpug at mail dot gmail dot com> <mvm61n0j6h6 dot fsf at hawking dot suse dot de>
On 27 March 2014 10:12, Andreas Schwab <schwab@suse.de> wrote:
> Can't you use __builtin_frame_address (0) instead?
That would give me the frame pointer, not the stack pointer, and the
user would have to calculate manually the offset to get the actual
stack pointer, which would be target-specific, possibly making it even
worse. Is that what you meant?
cheers,
--renato