This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fixincludes/3195 PTHREAD_MUTEX_INITIALIZER on Solaris


Sylvain Pion wrote:
> 
> Hi,
> 
> I think you can close the PR in GNATS.  At least it works for me now.

It is only partly fixed.  PTHREAD_RWLOCK_INITIALIZER is still a problem.
Any "initializer" that initializes a "upad64_t" type and does not
have a varying initializer is going to be broken. 
PTHREAD_MUTEX_INITIALIZER
and PTHREAD_COND_INITIALIZER have been taken care of now.  I wouldn't
close it until the rest are done.

    /*
     * UNIX 98 Extension
     */
    typedef struct _pthread_rwlock {        /* = rwlock_t in synch.h */
        int32_t         __pthread_rwlock_readers;
        uint16_t        __pthread_rwlock_type;
        uint16_t        __pthread_rwlock_magic;
        upad64_t        __pthread_rwlock_pad1[3];
        upad64_t        __pthread_rwlock_pad2[2];
        upad64_t        __pthread_rwlock_pad3[2];
    } pthread_rwlock_t;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]