https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #7 from Martin Liška ---
Created attachment 41233
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41233&action=edit
Another test-case
There's another test-case which is sensible to -O, which causes an inlining to
happen and afte
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #6 from Martin Liška ---
Thanks both. Better error than a strange behavior. Well, would it worth for
somehow more explicitly document that clobbering stack pointer is a wrong
think/invalid?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #5 from Jakub Jelinek ---
I think we have other PRs that ICE or do bad things if "esp"/"rsp" is clobbered
in inline-asm, e.g. PR80367 recently.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #4 from Uroš Bizjak ---
(In reply to Martin Liška from comment #3)
> (In reply to Uroš Bizjak from comment #2)
> > You should not clobber esp.
>
> Works for me, thanks. Can you please explain me why it makes problem? Is it
> because
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #3 from Martin Liška ---
(In reply to Uroš Bizjak from comment #2)
> You should not clobber esp.
Works for me, thanks. Can you please explain me why it makes problem? Is it
because not enough registers or?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #2 from Uroš Bizjak ---
You should not clobber esp.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470
--- Comment #1 from Martin Liška ---
Created attachment 41232
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41232&action=edit
test-case