tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] __builtin_return_address(): any tips?


From: Edmund Grimley Evans
Subject: Re: [Tinycc-devel] __builtin_return_address(): any tips?
Date: Thu, 5 Mar 2015 22:00:36 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

I wrote:

> It's very similar to __builtin_frame_address, which is already
> implemented.
> 
> The patch below seems to do the job on arm64, but it assumes that the
> return address is just above the frame address on the stack, which
> might not be true on other architectures.

It seems to be true on i386 and x86_64, though, and presumably only a
small adaptation would be required to make it work on other
architectures, too. If nobody objects, I'll push a version of that
patch, probably with an explanatory comment, at the weekend.

Edmund



reply via email to

[Prev in Thread] Current Thread [Next in Thread]