This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [parisc-linux] Re: NPTL for hppa-linux is not backwards compatible with Linuxthreads.


> I did a couple of tests and I verified that I have no words to spare.
> Adding an extra "int __pad" forces the structure to grow by 8 bytes
> due to the "long long" alignment requirements.

Just reorder the fields so that the 32-bit fields are all in groups of 2 or 4.
All that should matter is that the padding word is one of the first four so
you can detect the old initializer data, and that __mutex is the 6th
member so the PTHREAD_COND_INITIALIZER text works out to be warning-free.
In fact, that doesn't really matter since the initializer contents are all
zero regardless of spelling.  If need be, you can add a new first union
member not called __data, with a layout that makes PTHREAD_COND_INITIALIZER
happy. 


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