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 v2 21/21] nptl: riscv: Fix Race conditions in pthread cancellation (BZ#12683)



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.


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