This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/41810] Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2009 18:14:38 -0000
- Subject: [Bug target/41810] Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope
- References: <bug-41810-15602@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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