Skip to content
Permalink
Browse files

OS/2: Add C++11 thread support

    modified:   libgcc/config.host
    modified:   libgcc/config/i386/libgcc-emx.ver
    new file:   libgcc/config/i386/t-gthr-os2
    new file:   libgcc/gthr-os2.c
    modified:   libgcc/gthr-os2.h
  • Loading branch information...
komh committed Jan 31, 2016
1 parent 553acd1 commit e012188309ff098911c960c2b44472aa99239cb1
Showing with 667 additions and 57 deletions.
  1. +5 −0 libgcc/config.host
  2. +26 −0 libgcc/config/i386/libgcc-emx.ver
  3. +2 −0 libgcc/config/i386/t-gthr-os2
  4. +455 −0 libgcc/gthr-os2.c
  5. +179 −57 libgcc/gthr-os2.h
@@ -686,6 +686,11 @@ i[34567]86-*-interix[3-9]*)
;;
i*86-pc-*emx) # i?86 running OS/2
tmake_file="$tmake_file i386/t-emx"
case ${target_thread_file} in
os2)
tmake_file="$tmake_file i386/t-gthr-os2"
;;
esac
extra_parts="$extra_parts emx-ctordtor.o"
host_exeext=.exe
;;
@@ -19,3 +19,29 @@
# Export custom EMX/KLIBC build symbols

__chkstk_ms

# __GTHREADS
__gthread_os2_mutex_init
__gthread_os2_mutex_destroy
__gthread_os2_mutex_lock
__gthread_os2_mutex_trylock
__gthread_os2_mutex_unlock

# __GTHREAD_HAS_COND
__gthread_os2_cond_init
__gthread_os2_cond_destroy
__gthread_os2_cond_broadcast
__gthread_os2_cond_wait
__gthread_os2_cond_wait_recursive

# __GTHREADS_CXX0X
__gthread_os2_create
__gthread_os2_join
__gthread_os2_detach
__gthread_os2_equal
__gthread_os2_self
__gthread_os2_yield
__gthread_os2_mutex_timedlock
__gthread_os2_recursive_mutex_timedlock
__gthread_os2_cond_signal
__gthread_os2_cond_timedwait
@@ -0,0 +1,2 @@
# We hide calls to OS/2 APIs needed for OS/2 thread support here:
LIB2ADD = $(srcdir)/gthr-os2.c

0 comments on commit e012188

Please sign in to comment.
You can’t perform that action at this time.