[PATCH v2 07/18] RISC-V: nptl: update default pthread-offsets.h

Maciej W. Rozycki macro@wdc.com
Wed Jul 15 19:23:14 GMT 2020


[Added cc's back.]

On Thu, 9 Jul 2020, Adhemerval Zanella via Libc-alpha wrote:

> > so here we have 48 for RV64, 24 for RV32/LE, and 27 for RV/BE, meaning 
> > that your change is wrong.  Please fix that.
> 
> This raises a flags because the wrong __PTHREAD_RWLOCK_FLAGS_OFFSET should 
> generate a build failure at pthread_rwlock_init.c.

 Possibly no one has ever built this code BE; I haven't.

 Now that I looked into it again I think GCC currently has no option for 
the big endianness with the RISC-V target, so maybe we can leave it as it 
is under your observation that a build failure is expected to happen here 
if someone tries it once/if we have such support in the compiler.

  Maciej


More information about the Libc-alpha mailing list