Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1618721ybv; Fri, 21 Feb 2020 00:24:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzpgE7GbaKYXXTX2tDCNiH0L7Xgf7pRiRBcuY2TV4oNVLZbOCQ9ok3iEBJrPtygLYj3ovQo X-Received: by 2002:aca:2118:: with SMTP id 24mr1048115oiz.28.1582273443172; Fri, 21 Feb 2020 00:24:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273443; cv=none; d=google.com; s=arc-20160816; b=rEEA9Xr3uibXW9nR/S83KghgZ+Xi9iiFWWGQvAiHAK3K5Z8ViWwLuT1gpv8AdCYifq G7A+ZEsPlJn7h9ERQTEXorIXfnh4HL5tuHREZmk+nxVoOzftbiasHTiRWFIW+vIMsPfZ ov9i5z4ejCFS1IeR3AjsVAkJgCYUXtPKIthpPkRxfe81y/WDwWyn/XHh2m2NU7FtlmTc BLRPFWWx+sz9nebY5O/rjCnpnRyOc6xavBdn6McpUL4HzKdY08P8pUMx2hP1CFsSVX5p dbrYci7FqoObd+EPh6NVS3s9TsBHYwbV3hjmC3vjint0wzgXA93ON8KMGpg8JWaTspGu Ih7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Yjl4lxMzCs37F/86PWSOZM2flAdtHC6iSP1m7O+BWvM=; b=EaLV//QUwXc+1JzxHVIrbCSs2FkfcEBxvXUkVbjlb5Npr7qW5ZS4DbhZ8P5CzQGaUF UU46baFiPJGg/lfgu7HItWu3BwC5SYVFe9prrIrUpsQxPITKwt2cOV9TCnxMtPydbup2 2tD5J/cIGXAji6yVN2tBR2//ZqwZVgT35LE4p+MyUo7xIWgGnv4hHk2dB3OiD+1CW477 IBEFLdeUCvFcniDMkK7Do1TjLCN91k/jCFTQR6ENwzMo12gwUzzDtfS6Hp17gcA5mZ53 89ZbY3MxHpyGLlDRfwuMKWAsZN4Qscfa2hbkaoxV3LPmBvdN2HLD0dxm7Unio7UGDLNZ T2Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dOqGVIvW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si1123798otr.52.2020.02.21.00.23.51; Fri, 21 Feb 2020 00:24:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dOqGVIvW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388440AbgBUIXM (ORCPT + 99 others); Fri, 21 Feb 2020 03:23:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:35126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388431AbgBUIXL (ORCPT ); Fri, 21 Feb 2020 03:23:11 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 341E324676; Fri, 21 Feb 2020 08:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273390; bh=hoSFGmctaTzSSVStkDlRbN6DIPzYVjHFy5EUE2RbAa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dOqGVIvW6VFjpd4HmQmDMPuwrjXb/L60T3K0qFrbPnlbxGp602PlEePhsi1FyC4kM ao4Q3H2Y99SerdXXLJn7DH2HOU0LUR5KFHd+rp35UVT+TXb1APIXgMd1oa7vdGm0gX BrHH+9u032mkmAmj1pL9NN6noJmUa337v3z7EYTA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Sasha Levin Subject: [PATCH 4.19 153/191] s390: adjust -mpacked-stack support check for clang 10 Date: Fri, 21 Feb 2020 08:42:06 +0100 Message-Id: <20200221072309.140906328@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasily Gorbik [ Upstream commit 253b3c4b2920e07ce9e2b18800b9b65245e2fafa ] clang 10 introduces -mpacked-stack compiler option implementation. At the same time currently it does not support a combination of -mpacked-stack and -mbackchain. This leads to the following build error: clang: error: unsupported option '-mpacked-stack with -mbackchain' for target 's390x-ibm-linux' If/when clang adds support for a combination of -mpacked-stack and -mbackchain it would also require -msoft-float (like gcc does). According to Ulrich Weigand "stack slot assigned to the kernel backchain overlaps the stack slot assigned to the FPR varargs (both are required to be placed immediately after the saved r15 slot if present)." Extend -mpacked-stack compiler option support check to include all 3 options -mpacked-stack -mbackchain -msoft-float which must present to support -mpacked-stack with -mbackchain. Acked-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Sasha Levin --- arch/s390/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/Makefile b/arch/s390/Makefile index e6c2e8925fefa..4bccde36cb161 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile @@ -63,7 +63,7 @@ cflags-y += -Wa,-I$(srctree)/arch/$(ARCH)/include # cflags-$(CONFIG_FRAME_POINTER) += -fno-optimize-sibling-calls -ifeq ($(call cc-option-yn,-mpacked-stack),y) +ifeq ($(call cc-option-yn,-mpacked-stack -mbackchain -msoft-float),y) cflags-$(CONFIG_PACK_STACK) += -mpacked-stack -D__PACK_STACK aflags-$(CONFIG_PACK_STACK) += -D__PACK_STACK endif -- 2.20.1