From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 740A1C3B1AF for ; Fri, 14 Feb 2020 17:54:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4619D20848 for ; Fri, 14 Feb 2020 17:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581702843; bh=SsNL5MnR4n7Jo/4O0AhUOyWnChUJgbvbffrPq0oW3sA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2Ugm7AMFJqA2U6IwLjlatk2/yO8OC/O+xSunEEfDLXixGR1pFCZszO5Tjl7JqqPp5 gFSGURL02j4AY1nTZKwAykOqtQ68hMdqV/CglD+KJzfyDmyMyk9YyXjm/7bvpzsI7u zsY2297KiBQsrzHoPi1914UYE65Y0jIK66vx37ig= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388504AbgBNP6K (ORCPT ); Fri, 14 Feb 2020 10:58:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:41814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388488AbgBNP6K (ORCPT ); Fri, 14 Feb 2020 10:58:10 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 503AB22314; Fri, 14 Feb 2020 15:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581695890; bh=SsNL5MnR4n7Jo/4O0AhUOyWnChUJgbvbffrPq0oW3sA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vpW0daEJu6tBr+wosukwgDehKJMtsL89/Zg8hbwydnImYj+DfWzPmWiUM+DojC2P2 enFLO7SI7VnYoMgeWFWy1bhaWdKcV08nejNIqKqyoJC/JvwbV8sBWvgGOo6fMxq+oX JRhz8l63iH1+KOsIyz2O9L7H/RtoqnIn4sYsVYws= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vasily Gorbik , Heiko Carstens , Sasha Levin , linux-s390@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH AUTOSEL 5.5 433/542] s390: adjust -mpacked-stack support check for clang 10 Date: Fri, 14 Feb 2020 10:47:05 -0500 Message-Id: <20200214154854.6746-433-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214154854.6746-1-sashal@kernel.org> References: <20200214154854.6746-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 ba8556bb0fb15..e0e3a465bbfd6 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile @@ -69,7 +69,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