From patchwork Thu Sep 6 07:07:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 966825 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 425WsH0ctLz9sDb for ; Thu, 6 Sep 2018 17:09:23 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tLfq5mXA"; dkim-atps=neutral Received: from lists.ozlabs.org (unknown [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 425WsG5qYnzF31s for ; Thu, 6 Sep 2018 17:09:22 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tLfq5mXA"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.214.195; helo=mail-pl1-f195.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tLfq5mXA"; dkim-atps=neutral Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 425Wq45fv3zF3CK for ; Thu, 6 Sep 2018 17:07:28 +1000 (AEST) Received: by mail-pl1-f195.google.com with SMTP id j8-v6so4521373pll.12 for ; Thu, 06 Sep 2018 00:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=0YYwKV5pIwjDuO1jJNlocAFZbH3Pz1UqpKvyZe6Bczw=; b=tLfq5mXARVgWOFQ9lRn8n8UMO+WEJTiE1AfvrnV9Z+wYhweuZXprokH4bdJeIbohkM LeNfR9L7ZWjJKhTPWNT5DpVq4mD231bazYG7IW1MobkKxsBGKShz75q8SAst8DsdPGEG 8s9ouByWYa/HsMUH8Wlz48JWMyXeW1eOeEUvjEJdBxE5IdsRTbwWhpb3nDk56uHbfkjw Wf/kjlVFEoA+9JvwH3zIyyxej4JmUtR0mGUo+XIYNTmbF6lX5k9NJBikFKUg7z6QSJUh Y8CGdEMwZ6Pb8UD4pHTe6wiuI7q6DkUiW458diTiLuIvDSTM2CfRl6eGdlrJkjunjWN7 McAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=0YYwKV5pIwjDuO1jJNlocAFZbH3Pz1UqpKvyZe6Bczw=; b=WMqjyNxYMAg8ePEl42BonDW37hsFp5XH1mzd3Hs9CR/pO37nBVVn29+E7cJ045JDuc 9fnsajeEq5D8+mJ6xuW87OYvvWaqngh7JJ3j86MrfMwQwOlcvJhwH28Zy8mcQGyA73Dc U6e7r+2JHT5pqzj34ur8yzpiHh3LenqxZnuYnWJfma1baOZ3W/JTm+QN8JHI7vkxjQfG ro8uvdPWMgLsXJCLtrSnKnUgAJhz7q0G914vQFRx+6hptnS3jYj00jm2B5aUQqMrTre0 uZyxcgTJ7G5lQWXkOwt7WDqgTe6B0ST8vyIOFN2OyCB4KBB/ChLPnJJjhVwUAet5m7Cv V2lw== X-Gm-Message-State: APzg51BN2VrGX1mSy0pRKJqczDLRLHm7qocdkonuYYrkFHbLuKKl0Z5o 9AYLYLNkgQgUeEbvp+zFYm0= X-Google-Smtp-Source: ANB0VdaeFQ3EHOwH9hbc43dlwZlsTjaJrJULZ0wKSLP+iCvBSu/JJhRhTReSWlRpSoRyX2gSYbT1Dw== X-Received: by 2002:a17:902:c85:: with SMTP id 5-v6mr1341560plt.141.1536217645998; Thu, 06 Sep 2018 00:07:25 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id w69-v6sm5310056pgd.37.2018.09.06.00.07.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Sep 2018 00:07:25 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 06 Sep 2018 17:07:18 +1000 From: Joel Stanley To: Anton Blanchard , benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, npiggin@gmail.com Subject: [PATCH v2] powerpc/Makefiles: Fix clang/llvm build Date: Thu, 6 Sep 2018 17:07:10 +1000 Message-Id: <20180906070710.29944-1-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Anton Blanchard Commit 15a3204d24a3 ("powerpc/64s: Set assembler machine type to POWER4") passes -mpower4 to the assembler. We have more recent instructions in our assembly files, but gas permits them. The clang/llvm integrated assembler is more strict, and we get a build failure. Fix this by calling the assembler with -mcpu=power8 if as supports it, else fall back to power4. Suggested-by: Nicholas Piggin Signed-off-by: Anton Blanchard Signed-off-by: Joel Stanley --- arch/powerpc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 11a1acba164a..a70639482053 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -238,7 +238,7 @@ cpu-as-$(CONFIG_4xx) += -Wa,-m405 cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec) cpu-as-$(CONFIG_E200) += -Wa,-me200 cpu-as-$(CONFIG_E500) += -Wa,-me500 -cpu-as-$(CONFIG_PPC_BOOK3S_64) += -Wa,-mpower4 +cpu-as-$(CONFIG_PPC_BOOK3S_64) += $(call as-option,-Wa$(comma)-mpower8,-Wa$(comma)-mpower4) cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc) KBUILD_AFLAGS += $(cpu-as-y)