]> gcc.gnu.org Git - gcc.git/commit
gcc: Add 'mcf' thread model support from mcfgthread
authorLIU Hao <lh_mouse@126.com>
Fri, 15 Apr 2022 16:46:23 +0000 (00:46 +0800)
committerJonathan Yong <10walls@gmail.com>
Wed, 19 Oct 2022 13:52:37 +0000 (13:52 +0000)
commitf036d759ecee538555fa8c6b11963e4033732463
treeb1f521e7f71c849d3b8f64e2d65d8df081b977ce
parentf3b957ea8b9dadfb1ed30f24f463529684b7a36a
gcc: Add 'mcf' thread model support from mcfgthread

This patch adds the new thread model `mcf`, which implements mutexes
and condition variables with the mcfgthread library.

Source code for mcfgthread is available at <https://github.com/lhmouse/mcfgthread>.

config/ChangeLog:
* gthr.m4 (GCC_AC_THREAD_HEADER): Add new case for `mcf` thread
model

gcc/ChangeLog:
* config/i386/mingw-mcfgthread.h: New file
* config/i386/mingw32.h: Add builtin macro and default libraries
for mcfgthread when thread model is `mcf`
* config.gcc: Include 'i386/mingw-mcfgthread.h' when thread model
is `mcf`
* configure.ac: Recognize `mcf` as a valid thread model
* config.in: Regenerate
* configure: Regenerate

libatomic/ChangeLog:
* configure.tgt: Add new case for `mcf` thread model

libgcc/ChangeLog:
* config.host: Add new cases for `mcf` thread model
* config/i386/gthr-mcf.h: New file
* config/i386/t-mingw-mcfgthread: New file
* config/i386/t-slibgcc-cygming: Add mcfgthread for libgcc DLL
* configure: Regenerate

libstdc++-v3/ChangeLog:
* libsupc++/atexit_thread.cc (__cxa_thread_atexit): Use
implementation from mcfgthread if available
* libsupc++/guard.cc (__cxa_guard_acquire, __cxa_guard_release,
__cxa_guard_abort): Use implementations from mcfgthread if
available
* configure: Regenerate
16 files changed:
config/gthr.m4
gcc/config.gcc
gcc/config.in
gcc/config/i386/mingw-mcfgthread.h [new file with mode: 0644]
gcc/config/i386/mingw32.h
gcc/configure
gcc/configure.ac
libatomic/configure.tgt
libgcc/config.host
libgcc/config/i386/gthr-mcf.h [new file with mode: 0644]
libgcc/config/i386/t-mingw-mcfgthread [new file with mode: 0644]
libgcc/config/i386/t-slibgcc-cygming
libgcc/configure
libstdc++-v3/configure
libstdc++-v3/libsupc++/atexit_thread.cc
libstdc++-v3/libsupc++/guard.cc
This page took 0.06436 seconds and 6 git commands to generate.