https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #64427|0 |1
is obsolete| |
Attachment #64442|0 |1
is obsolete| |
--- Comment #57 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 64443
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64443&action=edit
v2 of the untested patch.
Actually, I think we have to emit DRAP register save for any function type.
DRAP gets saved inside the realigned frame (and is used to restore RSP), so we
have to put DRAP detection in front of early exits from
switch (cfun->machine->call_saved_registers).