I'm going to attach a patch for Icon 9.4.3 that fixes custom rswitch selection for Gentoo Linux (at least if you use coreutils 7.1) and adds the rswitch.s that I wrote for AMD64 a few years ago. This rswitch is already included in Unicon. Presumably because of the way custom context switching works in Icon, this patch will cause an executable-stacks QA notice and won't work with hardened gcc. How these issues are to be dealt with in an ebuild, or if the patch should be used at all, I leave for package maintainers to figure out. (I did also write an rswitch.c that worked with hardened gcc 3 but I wouldn't recommend it for ebuilds, because it depended upon the C optimizer's behavior and so could fail depending on the version of gcc.)
Created attachment 185355 [details, diff] Patch for custom context switching on Linux, including AMD64.
Just a comment... the assembler version of rswitch has been phased out in the upstream source for icon 9.5.0
(In reply to comment #2) > Just a comment... the assembler version of rswitch has been phased out in the > upstream source for icon 9.5.0 That's probably just as well, since it causes more trouble at build time than it is worth.
I would suggest that this bug be closed since the support for this request is no longer available in the current upstream release (In reply to comment #3) > (In reply to comment #2) > > Just a comment... the assembler version of rswitch has been phased out in the > > upstream source for icon 9.5.0 > > That's probably just as well, since it causes more trouble at build time than > it is worth. >