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

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to