Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1162034pxb; Fri, 21 Jan 2022 11:10:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzizb53EZlpe8aWAiFrT+jm6zQ5eyYznVtjsOIpywRgHs1cf7hHZCUBOttFB8l0eG2VaZwu X-Received: by 2002:a62:6415:0:b0:4c6:fe2f:6a94 with SMTP id y21-20020a626415000000b004c6fe2f6a94mr5136582pfb.25.1642792201555; Fri, 21 Jan 2022 11:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792201; cv=none; d=google.com; s=arc-20160816; b=tJtPIYYv1paZp8dLEp0Mj0MF8zkdT09CMJRzAQKfIa8G8gnznmZhAZ5ZKdb4KVah5o 2SVkeZIh/GZkil9h2Wo5T/shT2PSaaureKRxsW3/lt3glQm73ZnPS6g14NGccrzUFStD qaji2zuX/LOuy+vzcf0EAk6agRnfHdCOOZGvepFBbVwK4ZldIP0w37vbirfvVV4wllYn YQ5KPG5LNd8bTM2hqlZ3fqBnMuG1Gbp98yEt+iZFoiR/fMSG++eI811VkkkfAsBQiTBj 7/PX0aPs5Ve/U1Efu7Kw9qYhypPFNuS28Ikq7UFDoiDF6xMYVdKIxVp2AVPfql5iFYlP 5tyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=MMNIp9OC472SVdJlCbXl2XbV+lJ+T6Z9K1imkWbyCPs=; b=H2+2OveFZmDd528hFZKWCTzOh1nkwST0rcq9FPcn2idRshS/EEzlAIP7yin1VnXM8q tF1VcxQO9BgUhv/0046fweaXYhXytd9EKpHIvAmlkXAxdS37z2sYVlXubFYRzMwhFI84 SseFZ4V3O/5FRZuWSYMTvU7NR8rxUE71hpC0jyLUZwk21YLe5pOeHap+n6RhgfvQywV1 3NLpe46rk+ou9CAUYObn4OWyuAnhD46fqKxLbgdL1bMwYk4x1+RcmS/NkzQPlKmpHte+ vGTdW398vUWAOHkcpfBbjrpf43aD7s0U9ILc6troIy2i7GrAJ0vRn6UUUbmjh3o2jqTP qXqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si7419234pfu.195.2022.01.21.11.09.48; Fri, 21 Jan 2022 11:10:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353835AbiASK6M (ORCPT + 99 others); Wed, 19 Jan 2022 05:58:12 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:39712 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349608AbiASK6K (ORCPT ); Wed, 19 Jan 2022 05:58:10 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Jf2g14qkYz1qy4C; Wed, 19 Jan 2022 11:58:05 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Jf2g13zWDz1qqkD; Wed, 19 Jan 2022 11:58:05 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ePKFid0XyVGn; Wed, 19 Jan 2022 11:58:04 +0100 (CET) X-Auth-Info: AdjUvmT+OC81O3UubJny8e2iCqI6sZo2X0NIh+ATrNdwGl8yDZySOQSZeJosN02s Received: from igel.home (ppp-46-244-165-91.dynamic.mnet-online.de [46.244.165.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 19 Jan 2022 11:58:04 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 24EE62C36ED; Wed, 19 Jan 2022 11:58:04 +0100 (CET) From: Andreas Schwab To: Jessica Clarke Cc: Changbin Du , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv , linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: eliminate unreliable __builtin_frame_address(1) References: <20220117154433.3124-1-changbin.du@gmail.com> X-Yow: My DIGITAL WATCH has an automatic SNOOZE FEATURE!! Date: Wed, 19 Jan 2022 11:58:04 +0100 In-Reply-To: (Jessica Clarke's message of "Mon, 17 Jan 2022 17:33:40 +0000") Message-ID: <87v8yg6lhf.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jan 17 2022, Jessica Clarke wrote: > Yes, this is a bug, that is always wrong. LLVM gets this right. Is that an ABI requirement? In case of a leaf function, gcc saves the caller's frame pointer in the first slot, not the second (it doesn't save the return address). -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."