From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: DJ Delorie Newsgroups: gmane.comp.lib.glibc.alpha Subject: Re: [PATCH v2 21/21] nptl: riscv: Fix Race conditions in pthread cancellation (BZ#12683) Date: Mon, 26 Feb 2018 20:16:19 -0500 Message-ID: References: <1519679016-12241-22-git-send-email-adhemerval.zanella@linaro.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519694066 18998 195.159.176.226 (27 Feb 2018 01:14:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 01:14:26 +0000 (UTC) Cc: libc-alpha@sourceware.org To: Adhemerval Zanella Original-X-From: libc-alpha-return-90650-glibc-alpha=m.gmane.org@sourceware.org Tue Feb 27 02:14:22 2018 Return-path: Envelope-to: glibc-alpha@blaine.gmane.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; q=dns; s=default; b=XV3InFk7xU9wr7o5 UpR5QVKa62m5ziEbBn7eCLHK7sajrtBBjQmcnULlAwc57AAIInQwifCYxiQqz2kb 5L8jI/aJwcFYq3OqtKKWPQ1Ehfce8EuPipPtnoZQKnLVmXem9NPRrc/REjybVl7P WYTgjQoFTkxH57+aXaKBUIrRwH4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=default; bh=0uSn9aC9pPH3GKxjOds7n3 sca3s=; b=Su3osobVq1PakVZxRtZjwoDK07LikGAjFSL+SNTnOJR9ZeKHP90sNy V+AVdoVKw8tWl0eWh8KsbExnW+KEM2+rsSDEpfCb/CJNNTL4DDN6r7/sAal4TqdF bpnHYh9Yq6mRz8xZo+/Z9mSE17V+BH5DPwGJz25UIYKS6vOjhhWmU= Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libc-alpha-owner@sourceware.org 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 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) Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82981 Archived-At: Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqTqX-0004VT-6B for glibc-alpha@blaine.gmane.org; Tue, 27 Feb 2018 02:14:21 +0100 Received: (qmail 123816 invoked by alias); 27 Feb 2018 01:16:24 -0000 Received: (qmail 123805 invoked by uid 89); 27 Feb 2018 01:16:23 -0000 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)