[Issue 44] MinGW: Add support for D fibers.
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Sun Mar 17 14:18:48 PDT 2013
http://gdcproject.org/bugzilla/show_bug.cgi?id=44
Daniel Green <venix1 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |venix1 at gmail.com
Summary|"naked" GCC attribute |MinGW: Add support for D
|needed to properly support |fibers.
|fibers on Windows |
--- Comment #4 from Daniel Green <venix1 at gmail.com> 2013-03-17 21:18:48 UTC ---
GCC doesn't do naked outside of ARM, AVR, MCORE, RX and SPU.
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
There are two solutions to this that don't involve using the WinAPI. The first
is rewriting the fiber implementation to not need naked.
Or putting the switchContext function into an external file as done on some
systems.
version( AsmExternal )
extern (C) void fiber_switchContext( void** oldp, void* newp );
Working fiber code for that function should be in the mingw repo. It's just
disabled as I never got around to externalizing it. I won't get around to it
until I finish getting GDC working with 4.8.0.
Going to update this title to properly reflect what needs to happen.
--
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.
More information about the D.gnu
mailing list