From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id DD5B61F45E for ; Tue, 11 Feb 2020 19:10:23 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=t4PN35n4rOjZ1dej W9hXOAzgkTKgnBgilxDCtQlywnUBwCHIsrZm5DiKWjLd6vb534VCA68jpXquHhJK t4zbw0DMr8WhdPGJa07tl8qC6rq0sZCt73oAKyr52asQEmcZdi85XidjCW/jhgdh mKZicqtWlpivRdmBZmuZnUx3W0U= 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:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=sOr/NZxno14VJTAHNAfGds vT+sI=; b=QlEOHraWRQKG8eHyoNGVdVlfHNs1N1Ej3LrDu6wMloV01sd1AmpSXC c8zNj8soimNo9atCi02gX5jqUyAbd/nJ36FreIzwsytSukgTr7fSJVrvqaVLVyUa ZvrDh6B6ZUI1FkOxI5FIYlxHSxRp7cCe9o9yMxo8r0cJ0XJDBw1dw= Received: (qmail 61285 invoked by alias); 11 Feb 2020 19:10:21 -0000 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: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 61271 invoked by uid 89); 11 Feb 2020 19:10:21 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-qv1-f67.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2mfVDxekyvEFbMDNakdZQ1bTJtLJolGX9sNpRrWuXN8=; b=PFUI+XMgvvCSVhVrNGvowukBv4qyXIBlBFgSpolaSnC33oqlFO6kZJ7Uvrbr1+w4gR k+5iqjdbwETph3nEI9CyRNi3bOt2mzVEekZfqTS6J6QlS7lUSHxPvLNavIVvAJ9HTAtc bcJDWctGhMJ2lPpJYRpw4oIAikoiSSVyC3mFL8aIVV3lQweVaimrsHNvg0690rSGcn2L v1qy3ZHjB+2IppwWEwMMm1UwiZIPiimIAJTEo91F7g7YOwFrDa4MbCwd/lDdNHni9kby yMIA+mPfWACgGlQBbag+eN+QRT+i2yjVbIoEpWOtHTsKMaGRvwhd6d7mq+mn7N6sQwrk +wdA== Subject: Re: [PATCH 09/15] microblaze: Avoid clobbering register parameters in syscall To: Florian Weimer Cc: libc-alpha@sourceware.org References: <20200210192038.23588-1-adhemerval.zanella@linaro.org> <20200210192038.23588-9-adhemerval.zanella@linaro.org> <87v9odnzcz.fsf@oldenburg2.str.redhat.com> From: Adhemerval Zanella Message-ID: Date: Tue, 11 Feb 2020 16:10:14 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <87v9odnzcz.fsf@oldenburg2.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 11/02/2020 08:21, Florian Weimer wrote: > * Adhemerval Zanella: > >> The microblaze INTERNAL_SYSCALL macro might clobber the register >> parameter if the argument itself might clobber any register (a function >> call for instance). >> >> This patch fixes it by using temporary variables for the expressions >> between the register assignments (as indicated by GCC documentation, >> 6.47.5.2 Specifying Registers for Local Variables). >> >> It is similar to the fix done for MIPS (BZ#25523). > > (bug 25523) for the bug reference, so that it will be recognized by the > commit hook. Rest looks good. Ack.