From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31478 invoked by alias); 11 Jan 2012 17:49:19 -0000 Received: (qmail 31462 invoked by uid 22791); 11 Jan 2012 17:49:17 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX 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; Wed, 11 Jan 2012 17:48:30 +0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51296] Several 30_threads tests FAIL on Tru64 UNIX Date: Wed, 11 Jan 2012 17:49: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: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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-01/txt/msg01297.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51296 --- Comment #20 from Jonathan Wakely 2012-01-11 17:48:25 UTC --- (In reply to comment #19) > I've just tried it with the vendor cxx (first disabling noexcept for C++ > < 2011), and it also fails with EINVAL. Well that's something vaguely positive at least ... the root cause probably isn't a G++ front-end issue or libstdc++ issue. > > I'm not sure if/when I'll be able to work on that. > > Given that this is mostly autoconf work, I could give it a try myself if > I can figure out where best to override the __GTHREAD_MUTEX_INIT > definition from gthr-default.h/gthr-posix.h. The problem seems to be > that autoconf results go into , which is included way > before . Yes, that's why I thought of making it depend on some new _GLIBCXX_BROKEN_GTHREAD_MUTEX_INIT macro set in by autoconf, rather trying to alter gthr-posix.h then e.g. class __mutex_base { protected: typedef __gthread_mutex_t __native_type; -#ifdef __GTHREAD_MUTEX_INIT -#if defined __GTHREAD_MUTEX_INIT && !defined _GLIBCXX_BROKEN_GTHREAD_MUTEX_INIT __native_type _M_mutex = __GTHREAD_MUTEX_INIT; constexpr __mutex_base() noexcept = default; #else __native_type _M_mutex;