Date: Mon, 18 Dec 2000 22:40:05 -0800 (PST) From: Naohiko Tsuji <yakisoba@f2.dion.ne.jp> To: freebsd-bugs@FreeBSD.org Subject: Re: gnu/23598: Merge libgcc_r with libgcc Message-ID: <200012190640.eBJ6e5X44146@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/23598; it has been noted by GNATS. From: Naohiko Tsuji <yakisoba@f2.dion.ne.jp> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012190640.eBJ6e5X44146>