This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [parisc-linux] Re: NPTL for hppa-linux is not backwards compatible with Linuxthreads.
- From: Roland McGrath <roland at redhat dot com>
- To: "Carlos O'Donell" <carlos at systemhalted dot org>
- Cc: libc-ports at sourceware dot org, debian-glibc at lists dot debian dot org, parisc-linux <parisc-linux at lists dot parisc-linux dot org>
- Date: Sun, 25 Feb 2007 22:45:58 -0800 (PST)
- Subject: 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.