Using the stack from inline assembly

Andrew Haley aph@redhat.com
Wed Dec 14 09:49:00 GMT 2016


On 13/12/16 18:15, Segher Boessenkool wrote:
> Clobbering "memory" does not work here.  Clobbering "rsp" however seems
> to work.  But, "seems to", I don't think there is a guarantee anywhere.
> Clobbering the stack pointer forces the use of the frame pointer, but is
> that guaranteed even?

No, I think we shouldn't do that.  If it's necessary to save things on
the stack all we need to do is to avoid the red zone.  That really isn't
hard.

Andrew.



More information about the Gcc-help mailing list