From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20466 invoked by alias); 3 Feb 2012 09:48:31 -0000 Received: (qmail 20457 invoked by uid 22791); 3 Feb 2012 09:48:30 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Feb 2012 09:48:18 +0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51296] Several 30_threads tests FAIL on Tru64 UNIX Date: Fri, 03 Feb 2012 09:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-02/txt/msg00328.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51296 --- Comment #34 from ro at CeBiTec dot Uni-Bielefeld.DE 2012-02-03 09:48:15 UTC --- > Since a similar problem exists for darwin11's > PTHREAD_RECURSIVE_MUTEX_INITIALIZER this solution is not OSF-specific. This > allows config/os/*/os_defines.h to define one or more of: > > _GTHREAD_USE_MUTEX_INIT_FUNC > _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC > _GTHREAD_USE_COND_INIT_FUNC > > which will cause gthr-posix.h to #undef the INIT macro and define an > INIT_FUNCTION instead. > > Would this work here too? You could either add a config/os/osf/os_defines.h I guess so. I'll try it with this weekend's bootstrap. > file (which would also need the other files in config/os/generic to be copied > for osf) or you could just put this in gthr-posix.h > > #ifdef __osf__ > # define _GTHREAD_USE_MUTEX_INIT_FUNC > # define _GTHREAD_USE_COND_INIT_FUNC > #endif Since that file already has osf-specific code (and the port will go away after 4.7 anyway), I'll probably go this route. Thanks. Rainer