[Bug d/99794] libphobos: Support building on *-*mingw*

2023-01-12 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99794

--- Comment #3 from nightstrike  ---
Hm, looks like it *IS* in 11.  I was confused by the PR being open and the
version stating 11, thinking that it still wasn't applied.  So the remaining
issues then are building on cygwin.  But at least on a linux to mingw cross,
the testsuite passes with only 33 fails.

[Bug d/99794] libphobos: Support building on *-*mingw*

2023-01-12 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99794

nightstrike  changed:

   What|Removed |Added

 CC||nightstrike at gmail dot com

--- Comment #2 from nightstrike  ---
Hoping this can be backported to 11 so that we can easily bootstrap later
versions.  Meanwhile, will this also fix the build errors on cygwin, or if is
specific to mingw?

[Bug d/99794] libphobos: Support building on *-*mingw*

2021-04-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99794

--- Comment #1 from CVS Commits  ---
The master branch has been updated by Iain Buclaw :

https://gcc.gnu.org/g:b66e72b43e1e8f402dc958ce3cca35f7c273340d

commit r11-8247-gb66e72b43e1e8f402dc958ce3cca35f7c273340d
Author: Iain Buclaw 
Date:   Mon Apr 19 14:36:14 2021 +0200

libphobos: Add D runtime support code for MinGW (PR99794)

libphobos/ChangeLog:

PR d/99794
* libdruntime/Makefile.am (DRUNTIME_SOURCES_CONFIGURED): Add
config/mingw/msvc.c on DRUNTIME_OS_MINGW.
* libdruntime/Makefile.in: Regenerate.
* libdruntime/config/mingw/msvc.c: New file.
* libdruntime/config/mingw/switchcontext.S (fiber_switchContext):
Fix
function definition.
* libdruntime/gcc/deh.d (__gdc_personality_seh0): Fix call to
_GCC_specific_handler.
* libdruntime/gcc/gthread.d (__gthread_once_t): Fix definition.
* libdruntime/gcc/unwind/generic.d (_GCC_specific_handler): Fix
declaration.
* libdruntime/rt/dmain2.d (rt_loadLibrary): Remove function.
(rt_loadLibraryW): Remove function.
(initLibrary): Remove function.
(rt_unloadLibrary): Remove function.