From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123816 invoked by alias); 27 Feb 2018 01:16:24 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 123805 invoked by uid 89); 27 Feb 2018 01:16:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:374 X-HELO: mx1.redhat.com From: DJ Delorie To: Adhemerval Zanella Cc: libc-alpha@sourceware.org Subject: Re: [PATCH v2 21/21] nptl: riscv: Fix Race conditions in pthread cancellation (BZ#12683) In-Reply-To: <1519679016-12241-22-git-send-email-adhemerval.zanella@linaro.org> (message from Adhemerval Zanella on Mon, 26 Feb 2018 18:03:36 -0300) Date: Tue, 27 Feb 2018 10:01:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-02/txt/msg00796.txt.bz2 Adhemerval Zanella 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)