]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gcc: Add 'mcf' thread model support from mcfgthread
authorLIU Hao <lh_mouse@126.com>
Mon, 7 Aug 2023 11:07:22 +0000 (13:07 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 00:54:26 +0000 (10:24 +0930)
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/
* gthr.m4 (GCC_AC_THREAD_HEADER): Add new case for `mcf` thread
model

config/gthr.m4

index 4b937306ad0802c013aa4862eafeefaa597bd590..11996247f150f99a9eb6720b33f8f72bacb8bf8c 100644 (file)
@@ -22,6 +22,7 @@ case $1 in
     tpf)       thread_header=config/s390/gthr-tpf.h ;;
     vxworks)   thread_header=config/gthr-vxworks.h ;;
     win32)     thread_header=config/i386/gthr-win32.h ;;
+    mcf)       thread_header=config/i386/gthr-mcf.h ;;
 esac
 AC_SUBST(thread_header)
 ])