https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117359

--- Comment #9 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Andreas Schwab from comment #8)
> If sp isn't changed then it should not appear as output.

SP isn't changed, but memory locations that depend on SP may be changed. By
listing RSP in the output we can say to the compiler that RSP changed in the
asm and that optimizations that depend on RSP not changing are now invalid.

This is what notice_stack_pointer_modification_1 records and it is exactly what
we need to prevent redzone creation.

Reply via email to