[PATCH v2 21/21] nptl: riscv: Fix Race conditions in pthread cancellation (BZ#12683)

DJ Delorie dj@redhat.com
Tue Feb 27 10:01:00 GMT 2018


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> +static inline uintptr_t
> +ucontext_get_pc (const ucontext_t *uc)
> +{
> +  return uc->uc_mcontext.__gregs[REG_PC];
> +}

That file already has a GET_PC() macro; why not use it?
(I mean, in the definition of this function)



More information about the Libc-alpha mailing list