From owner-freebsd-bugs Mon Dec 18 22:40: 8 2000 From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 18 22:40:06 2000 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CA1EA37B402 for ; Mon, 18 Dec 2000 22:40:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBJ6e5X44146; Mon, 18 Dec 2000 22:40:05 -0800 (PST) (envelope-from gnats) Date: Mon, 18 Dec 2000 22:40:05 -0800 (PST) Message-Id: <200012190640.eBJ6e5X44146@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Naohiko Tsuji Subject: Re: gnu/23598: Merge libgcc_r with libgcc Reply-To: Naohiko Tsuji Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR gnu/23598; it has been noted by GNATS. From: Naohiko Tsuji To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: gnu/23598: Merge libgcc_r with libgcc Date: Tue, 19 Dec 2000 15:39:46 +0900 > Sorry, missing "pthread_mutex_init" weak symbol. > If we need "__GTHREAD_MUTEX_INIT_FUNCTION", hacking "gcc/gthr-posix.h". > So new Fix 1+ instead of previous Fix 1, and new Fix 1.1. > > 1+. Add the next line into "config/freebsd.h". > > #ifdef IN_LIBGCC2 > #ifndef __GTHREAD_MUTEX_INIT_FUNCTION > #define __GTHREAD_MUTEX_INIT_FUNCTION __gthread_mutex_init_function > #endif > #endif /* IN_LIBGCC2 */ > > 1.1. Improve "contrib/gcc/gthr-posix.h". > > *** gcc/gthr-posix.h.orig > --- gcc/gthr-posix.h > *************** > *** 56,61 **** > --- 56,65 ---- > #pragma weak pthread_mutex_trylock > #pragma weak pthread_mutex_unlock > > + #ifdef __GTHREAD_MUTEX_INIT_FUNCTION > + #pragma weak pthread_mutex_init > + #endif > + > static void *__gthread_active_ptr = &pthread_create; > > static inline int > *************** > *** 142,147 **** > --- 146,157 ---- > return pthread_mutex_unlock (mutex); > else > return 0; > + } > + > + static inline void > + __gthread_mutex_init_function (__gthread_mutex_t *mutex) > + { > + pthread_mutex_init (mutex, NULL); > } > > #endif /* not __gthr_posix_h */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message