X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libgcc%2Fgthr-single.h;h=c6d84e380750cb985caed94e154396fc22c139a6;hb=9bb403dca6e7d81f54962db87cdefb1cca1600dd;hp=357528ad1f16d4aa54518b12498d249ea178b252;hpb=5d1c8e77cfcc007c21bfdf2077afffcb720a48b2;p=gcc.git diff --git a/libgcc/gthr-single.h b/libgcc/gthr-single.h index 357528ad1f1..c6d84e38075 100644 --- a/libgcc/gthr-single.h +++ b/libgcc/gthr-single.h @@ -1,7 +1,6 @@ /* Threads compatibility routines for libgcc2 and libobjc. */ /* Compile this one with gcc. */ -/* Copyright (C) 1997, 1999, 2000, 2004, 2008, 2009 - Free Software Foundation, Inc. +/* Copyright (C) 1997-2020 Free Software Foundation, Inc. This file is part of GCC. @@ -36,9 +35,10 @@ typedef int __gthread_recursive_mutex_t; #define __GTHREAD_ONCE_INIT 0 #define __GTHREAD_MUTEX_INIT 0 +#define __GTHREAD_MUTEX_INIT_FUNCTION(mx) do {} while (0) #define __GTHREAD_RECURSIVE_MUTEX_INIT 0 -#define UNUSED __attribute__((unused)) +#define UNUSED __attribute__((__unused__)) #ifdef _LIBOBJC @@ -285,6 +285,12 @@ __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) return __gthread_mutex_unlock (__mutex); } +static inline int +__gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) +{ + return __gthread_mutex_destroy (__mutex); +} + #endif /* _LIBOBJC */ #undef UNUSED