Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp894940pxf; Thu, 11 Mar 2021 18:37:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpeunizOVtcGhMxiJCNU6CDHE2HjG+JNslORhR9GI1rB19JvzaNiE/WIiWynsn1OxMrIQM X-Received: by 2002:a17:906:260a:: with SMTP id h10mr6211952ejc.392.1615516639329; Thu, 11 Mar 2021 18:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615516639; cv=none; d=google.com; s=arc-20160816; b=q6KnpJpoID9U1v3Lq+VKex/Lc4p3OusAFd6L9EheTLQiJTMAyWbbncbCxBGTZrZcKF 30CtNIiAvrF7EnhSby8lPR2OTkq/eHCS8gKbgWl4cB7zQsRDMY6Ek4C37xZKikSD5cgV 15XNw/mIT8q3Rl1ExXIFscyxH6jKmZZYiuonLm1H3Y1xCMt+FDRCTU0pXNb0t33Ktxt2 f8RWsavW5zLtiScZXIBHzOuhD8pH7QubWhgkzJISs4SHxK1g++QiD+DeDgminGXtGDNl rJSxxHS3YGm7SsPtjuP6peHBazvmDgjsWdG2UPHWwkA9WF8cmeHvTh87m3VXsO9/5FB1 ozhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/kyUW3hJToMTgQ9GnSotYNJlyiskj+DBeNrM24UKoOE=; b=UojDyvHruMotDd7HF6hHQpXY9yi7rlOdQ3aX1YY/ykxdFFumqGRgAW7kLbTAi9GvgD oVcWkXcbj/7HtRA18ybnudw8D60r9EltDwAnQCMEdXvWSybZ0fY24Ww5jGDUIhaUwmyk Q1I23SU6xgJbkDmcRFvCKpMMVdyjoDTGpODUPnHcBq7L+jtUgLPgZ1hPRsXE+XQ17ENL +6mNFe6jxFfOpJjyDzjXkoyN1elBGApArq5WO0M+htT5gi746TxSHrt79NebskbE6uXj cmeo+f/jWcpK2kK6BNLYiMRv9XRhGb3vBHQQXBQzRL7CjH/HumLPyyP1HVBVtf9hAb7+ 98kw== 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 a18si3181684ejr.606.2021.03.11.18.36.56; Thu, 11 Mar 2021 18:37:19 -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 S230494AbhCLCfq (ORCPT + 99 others); Thu, 11 Mar 2021 21:35:46 -0500 Received: from gate.crashing.org ([63.228.1.57]:41065 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhCLCfV (ORCPT ); Thu, 11 Mar 2021 21:35:21 -0500 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 12C2TfrX028000; Thu, 11 Mar 2021 20:29:41 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 12C2Te1w027999; Thu, 11 Mar 2021 20:29:40 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 11 Mar 2021 20:29:40 -0600 From: Segher Boessenkool To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/vdso32: Add missing _restgpr_31_x to fix build failure Message-ID: <20210312022940.GO29191@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Tue, Mar 09, 2021 at 06:19:30AM +0000, Christophe Leroy wrote: > With some defconfig including CONFIG_CC_OPTIMIZE_FOR_SIZE, > (for instance mvme5100_defconfig and ps3_defconfig), gcc 5 > generates a call to _restgpr_31_x. > I don't know if there is a way to tell GCC not to emit that call, because at the end we get more instructions than needed. The function is required by the ABI, you need to have it. You get *fewer* insns statically, and that is what -Os is about: reduce the size of the binaries. (The only reason you get such problems is because Linux does not have all of libgcc. You can have that *and* have some symbols cause link errors, it isn't rocket science). Segher