[PATCH v2 21/21] nptl: riscv: Fix Race conditions in pthread cancellation (BZ#12683)
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Feb 27 13:34:00 GMT 2018
On 26/02/2018 22:16, DJ Delorie wrote:
> 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)
>
I used just to avoid the extra cast (long int -> void -> uintptr_t).
I do not have a strong preference here in fact.
More information about the Libc-alpha
mailing list