* Possible redundant `mov` in i386/x86_64 longjmp()?
@ 2016-01-12 22:49 Mark Mossberg
0 siblings, 0 replies; only message in thread
From: Mark Mossberg @ 2016-01-12 22:49 UTC (permalink / raw)
To: musl
Hi all,
I was recently perusing musl’s implementation of longjmp() for i386 and I saw that esp was restored via:
mov 16(%edx),%ecx
mov %ecx,%esp
To me, it seems like the intermediary mov to %ecx is unnecessary. Could the code instead be the following?
mov 16(%edx), %esp
Thanks,
Mark
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-12 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-12 22:49 Possible redundant `mov` in i386/x86_64 longjmp()? Mark Mossberg
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).