This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unreviewed Tru64 UNIX patches


On Tue, Jul 03, 2007 at 07:25:02PM +0200, Rainer Orth wrote:
> > My preference would be not to modify gthr-posix.h, but instead
> > add #pragma weak pthread_... to gthr-posix.c for all symbols that
> > file defines.
> 
> I chose the _Pragma(weak name) approach because it effectively restored the
> old #pragma weak name declarations in gthr-posix.h.  This way, the patch is
> much smaller and there's no need to have all gthr functions in a third
> place (gthr-posix.h and twice in gthr-posix.c).

Well, you could say #define weak_function __attribute__((__weak__)) in
gthr-posix.c and just add weak_function to all function definitions.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]