This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] New condvar implementation that provides stronger ordering guarantees.


On Mon, 2 Jan 2017, Torvald Riegel wrote:

> On Sat, 2016-12-31 at 17:37 +0000, Joseph Myers wrote:
> > In addition to hppa (as expected), it appears the build is broken for 
> > sparcv9 (previous discussion said it was broken for pre-v9, did the 
> > expected breakage change as a result of other sparc changes?).
> 
> I had initially left sparc pthreadtypes.h untouched because I assumed
> sparc would do something (eg, have proper atomics availabe for all sparc
> variants) -- and then failed to make some decision regarding sparc
> before commiting the new condvar.  The attached patch just adds the new
> definitions to sparc's pthreadtypes.h, which should fix your build
> problem.  Can you give it a try?

I can confirm this fixes the glibc build for sparc64-linux-gnu and 
sparcv9-linux-gnu.

> Also, while we're at it, could you please have a look at the change to
> aarch64 pthread_cond_t introduced with the new condvar?  I applied this
> change:
> 
> -  long int __align;
> +  __extension__ long long int __align;
> 
> which seemed fine because the previous struct definition also had long
> long int fields.  Is this okay?  (Same for ia64.)

I think changing long to long long is fine in such cases where they are 
the same size.  The AArch64 ILP32 people will need to figure out if it's 
correct in that case.

-- 
Joseph S. Myers
joseph@codesourcery.com


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