public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/7971: Fixing pthread.h for Solaris v2.6
@ 2002-09-18 8:06 ahelm
0 siblings, 0 replies; only message in thread
From: ahelm @ 2002-09-18 8:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 7971
>Category: target
>Synopsis: Fixing pthread.h for Solaris v2.6
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Sep 18 08:06:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: ahelm@gmx.net
>Release: all 3.x GCC releases
>Organization:
>Environment:
Solaris 2.6
>Description:
GCC complains about "partly bracketed initialiser" when
using any >> or << operators in C++ to stdin/stdout/stderr.
The reason is a bug in the Solaris v2.6 supplied pthread.h.
As fixincludes is already making a copy of this file
and modifies the very same line that contains the
incomplete initialiser, I don't see why fixincludes cannot
fix this file properly.
As far as I understand Sun Microsystems is not willing to fix this bug.
The original file (line 54):
#define PTHREAD_MUTEX_INITIALIZER {0, 0, 0} /* = DEFAULTMUTEX */
The GCC version after fixincludes (now line 63):
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
#define PTHREAD_MUTEX_INITIALIZER {0, 0, 0} /* = DEFAULTMUTEX */
#else
#define PTHREAD_MUTEX_INITIALIZER {0, 0, {0}} /* = DEFAULTMUTEX */
#endif
Should be (line 63):
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
#define PTHREAD_MUTEX_INITIALIZER {{{0}, 0}, {{{0}}}, 0} /* = DEFAULTMUTEX */
#else
#define PTHREAD_MUTEX_INITIALIZER {0, 0, {0}} /* = DEFAULTMUTEX */
#endif
>How-To-Repeat:
>Fix:
Get fixincludes to change the line
#define PTHREAD_MUTEX_INITIALIZER {0, 0, 0} /* = DEFAULTMUTEX */
into
#define PTHREAD_MUTEX_INITIALIZER {{{0}, 0}, {{{0}}}, 0} /* = DEFAULTMUTEX */
in GCCs copy of pthread.h if host is Solaris 2.6.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-18 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-18 8:06 target/7971: Fixing pthread.h for Solaris v2.6 ahelm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).