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: Gthreads patch to disable static initializer macros


On 6 February 2012 06:40, Jakub Jelinek wrote:
> On Sun, Feb 05, 2012 at 08:26:22PM +0000, Jonathan Wakely wrote:
>> This has been testing on darwin, if Rainer tests it successfully on
>> Tru64 will the gthr-posix.h change be acceptable?
>
> Ok with a suitable ChangeLog entry.

Jakub, further to the patch you approved this version unconditionally
defines a weak reference to pthread_cond_init (rather than only doing
it for libobjc) so that it can be used by
__gthread_cond_init_function() if _GTHREAD_USE_COND_INIT_FUNC is
defined.  Testing with _GTHREAD_USE_COND_INIT_FUNC revealed that was
necessary.

gthr-posix.h changes OK as attached, with this ChangeLog?

libgcc/
2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/51906
        PR libstdc++/51296
        * gthr-posix.h: Allow static initializer macros to be disabled.
        (__gthrw_pthread_cond_init): Define weak reference unconditionally.

libstdc++-v3/
2012-02-07  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/51296
        * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept.
        * src/c++11/condition_variable.cc (condition_variable): Use macro for
        initializer function.

        PR libstdc++/51906
        * config/os/bsd/darwin/os_defines.h: Disable static initializer for
        recursive mutexes.

Tested x86_64-linux with --enable-languages=c,c++,objc,obj-c++, both
with and without the new _GTHREAD_USE_XXX_INIT_FUNC macros defined.

Also tested on i686-linux, powerpc-linux, x86_64-netbsd with default
configuration and just --enable-languages=c,c++

Attachment: gthr.txt
Description: Text document


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