public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/53179] New: fixinclude needed for pthread.h on AIX 5.3 (PTHREAD_ONCE_INIT)
@ 2012-05-01 20:16 skunk at iskunk dot org
  2012-05-01 20:17 ` [Bug other/53179] " skunk at iskunk dot org
  2015-02-06 17:13 ` dje at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: skunk at iskunk dot org @ 2012-05-01 20:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53179

             Bug #: 53179
           Summary: fixinclude needed for pthread.h on AIX 5.3
                    (PTHREAD_ONCE_INIT)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: skunk@iskunk.org
              Host: powerpc-ibm-aix5.3.0.0
            Target: powerpc-ibm-aix5.3.0.0
             Build: powerpc-ibm-aix5.3.0.0


Created attachment 27274
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27274
/usr/include/pthread.h from AIX 5.3

$ cat pth.c
#include <pthread.h>

pthread_once_t once = PTHREAD_ONCE_INIT;

int main(void) { return 0; }

$ OBJECT_MODE=32 gcc -W -Wall -c pth.c
pth.c:3:1: warning: missing braces around initializer
pth.c:3:1: warning: (near initialization for 'once.__on_word')

$ gcc -maix64 -W -Wall -c pth.c
pth.c:3:1: warning: missing braces around initializer
pth.c:3:1: warning: (near initialization for 'once.__on_word')

This is bad if you're building with -Werror.

Inexplicably, both the 32- and 64-bit forms of the PTHREAD_ONCE_INIT
initializer lack a pair of curly-braces. This despite other initializers in the
same file having the same form, and the correct double-brace syntax.

I am attaching a copy of both the original, unmodified pthread.h header, and my
manually-fixed version.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug other/53179] fixinclude needed for pthread.h on AIX 5.3 (PTHREAD_ONCE_INIT)
  2012-05-01 20:16 [Bug other/53179] New: fixinclude needed for pthread.h on AIX 5.3 (PTHREAD_ONCE_INIT) skunk at iskunk dot org
@ 2012-05-01 20:17 ` skunk at iskunk dot org
  2015-02-06 17:13 ` dje at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: skunk at iskunk dot org @ 2012-05-01 20:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53179

--- Comment #1 from Daniel Richard G. <skunk at iskunk dot org> 2012-05-01 20:17:24 UTC ---
Created attachment 27275
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27275
Fixed version of pthread.h


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug other/53179] fixinclude needed for pthread.h on AIX 5.3 (PTHREAD_ONCE_INIT)
  2012-05-01 20:16 [Bug other/53179] New: fixinclude needed for pthread.h on AIX 5.3 (PTHREAD_ONCE_INIT) skunk at iskunk dot org
  2012-05-01 20:17 ` [Bug other/53179] " skunk at iskunk dot org
@ 2015-02-06 17:13 ` dje at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dje at gcc dot gnu.org @ 2015-02-06 17:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53179

David Edelsohn <dje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |dje at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> ---
The fix was implemented in 2011-11 and was included in GCC 4.7.0.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-06 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-01 20:16 [Bug other/53179] New: fixinclude needed for pthread.h on AIX 5.3 (PTHREAD_ONCE_INIT) skunk at iskunk dot org
2012-05-01 20:17 ` [Bug other/53179] " skunk at iskunk dot org
2015-02-06 17:13 ` dje at gcc dot gnu.org

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).