[Bug 266] Can threadasm.S be replaced with generics?
via D.gnu
d.gnu at puremagic.com
Wed Jul 19 12:12:11 PDT 2017
https://bugzilla.gdcproject.org/show_bug.cgi?id=266
--- Comment #4 from Johannes Pfau <johannespfau at gmail.com> ---
Actually there's one more thing to watch out for:
The ARM code does not save & restore the link register. The context switch is
supposed to also switch the 'call stack' so this is invalid as well, as the
function will return to the original caller and not the caller belonging to the
newp* argument.
Nevertheless, an intrinsic approach would be much cleaner and the compiler
already knows all required backend / ABI information anyway. So maybe once
we're merged into GCC we can introduce a new __builtin_switch_context for this?
Actually, shouldn't Go have something similar for their goroutine stuff?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the D.gnu
mailing list