From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26799 invoked by alias); 23 Oct 2009 18:14:49 -0000 Received: (qmail 26752 invoked by uid 48); 23 Oct 2009 18:14:38 -0000 Date: Fri, 23 Oct 2009 18:14:00 -0000 Message-ID: <20091023181438.26751.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/41810] Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" 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: 2009-10/txt/msg02040.txt.bz2 ------- Comment #2 from paolo dot carlini at oracle dot com 2009-10-23 18:14 ------- Let's CC Rainer. IMHO something is broken in gthr-solaris.h, I see: #ifdef __cplusplus #define UNUSED(x) #else #define UNUSED(x) x __attribute__((unused)) #endif ... static inline int __gthread_mutex_destroy (__gthread_mutex_t * UNUSED(__mutex)) { if (__gthread_active_p ()) return __gthrw_(mutex_destroy) (__mutex); else return 0; } which cannot be Ok when __cplusplus is defined. Not a libstdc++ proper issue. -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at techfak dot uni- | |bielefeld dot de Component|libstdc++ |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41810