[Bug d/90060] libphobos.druntime_shared/core/thread.d FAILs on Solaris/SPARC
ibuclaw at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 13 18:20:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90060
--- Comment #1 from ibuclaw at gcc dot gnu.org ---
Comment on attachment 46150
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46150
Use __makecontext_v2 on Solaris/SPARC
>+ version (makecontextv2)
>+ pragma(mangle, "__makecontext_v2") void makecontext(ucontext_t*, void function(), int, ...);
>+ else
>+ void makecontext(ucontext_t*, void function(), int, ...);
I would use alias here instead of pragma(mangle).
void __makecontext_v2(ucontext_t*, void function(), int, ...);
alias makecontext = __makecontext_v2;
Both do the same thing however...
More information about the Gcc-bugs
mailing list