This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: weakref GCC attribute and .weakref assembly directive
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org,Richard Henderson <rth at redhat dot com>,jakub at redhat dot com,drepper at redhat dot com,bkoz at redhat dot com
- Date: Sun, 13 Nov 2005 11:21:09 +0100
- Subject: Re: RFC: weakref GCC attribute and .weakref assembly directive
- References: <orek6tca8g.fsf@livre.oliva.athome.lsd.ic.unicamp.br> <orhdbbejgs.fsf@livre.oliva.athome.lsd.ic.unicamp.br> <or4q74rgoj.fsf@livre.oliva.athome.lsd.ic.unicamp.br>
> * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
> gthr-tpf.h: Define __gthrw. For all identifiers that might
> be weak, introduce weakrefs or non-weak aliases with __gthrw,
> and prefix all uses with __ghtrw.
Uncovered glitches that break bootstrap on Solaris 2.5.1 and 2.6. I've
installed the following patch after bootstrapping/regtesting on
sparc-sun-solaris2.6 and sparc-sun-solaris2.5.1.
2005-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
* gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
and duplicate declaration of pthread_self.
--
Eric Botcazou
Index: gthr-posix95.h
===================================================================
--- gthr-posix95.h (revision 106820)
+++ gthr-posix95.h (working copy)
@@ -80,7 +80,6 @@
__gthrw(pthread_mutex_trylock);
__gthrw(pthread_mutex_unlock);
__gthrw(pthread_mutexattr_init);
-__gthrw(pthread_mutexattr_settype);
__gthrw(pthread_mutexattr_destroy);
__gthrw(pthread_mutex_init);
@@ -94,7 +93,6 @@
__gthrw(pthread_cond_wait);
__gthrw(pthread_exit);
__gthrw(pthread_mutex_destroy);
-__gthrw(pthread_self);
#ifdef _POSIX_PRIORITY_SCHEDULING
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
__gthrw(sched_get_priority_max);