From patchwork Fri Sep 14 04:06:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 969611 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42BMX82knDz9s9h for ; Fri, 14 Sep 2018 14:11:20 +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="DA+74cSP"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42BMX80G2mzF3Tn for ; Fri, 14 Sep 2018 14:11:20 +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="DA+74cSP"; 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=2607:f8b0:4864:20::641; helo=mail-pl1-x641.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="DA+74cSP"; dkim-atps=neutral Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (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 42BMRQ3DjVzF3V3 for ; Fri, 14 Sep 2018 14:07:14 +1000 (AEST) Received: by mail-pl1-x641.google.com with SMTP id b30-v6so3578404pla.0 for ; Thu, 13 Sep 2018 21:07:14 -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:in-reply-to:references; bh=0YYwKV5pIwjDuO1jJNlocAFZbH3Pz1UqpKvyZe6Bczw=; b=DA+74cSPg/pdIkU4rAIOXvoo5xXTNYU9wHX8xB5kMfDKbaqQdKJPwZpSaiQ82YeFL2 11IEASxrNE7jULFz69xUv+Q2hSspgZ4KfvH4p5dCH3U7JH7a7eleJoTnWRMDlCWpnP4T c3z8jiqzW9OlPtaroBhsoIDeuiJ0g2G1b9aa4kkOIhZrtiPGh3JfI4uiVZDnoavre+F3 V4obioNY3r49rOXynrrQUxyuCTQReSW1bVvDOFzhYprbrrQrrWOid8pIcfy0oDV3NLBP vIHncQ3ynYReByBtuzRCY3p5Rd0CrFy5VE2dtIBgB0LnKpj7eZfBibAxIRYiicU5a3gb 0s5Q== 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 :in-reply-to:references; bh=0YYwKV5pIwjDuO1jJNlocAFZbH3Pz1UqpKvyZe6Bczw=; b=Qi1hd+TgAAdnajnQwsvHus8e8V3qDQIiiXYoRcxeM16Y1VdGgqLSa+UQfKFF9gEN3S v8ZY251SDbZt4xe+10SuRxC1ysSNsItQkk1SYris/nKY1+NeFpZhvbL1NQKGfaJk7J6e gtjpDQop2TGZ5JsgOrBw8Aap3byB/dxl57FLIxguITgtaZl6tPJ2JmXQjmOC7mJ8ZdlG 8oRqnxLoXVZ9Ae4S746HNNLBmnvwScdOKQ+iDgrpRbsbmD8dYyM0WwOu22fDtCA4U0Es LZ6WQDdTWZNBDywlZhSSG7I1WPAc8lGEgXoEwY492G1qUq9Cd1S3cYcGWazV+9oYkqn1 Osgg== X-Gm-Message-State: APzg51C4/M/NBtztVVlLsUsI7aPaE6rBxgOupgIR9K98jJbtl/43D7to ATLU5nPWw6GXq+a6AbVSLcRZ3K4U X-Google-Smtp-Source: ANB0VdZ5sbN6i1vqfDSFmxAkRzjMW1aqX5oILheOAY0CcvSTk8EnYhuq3/pUe35CYLXcehzGve4vhw== X-Received: by 2002:a17:902:127:: with SMTP id 36-v6mr10276450plb.178.1536898029908; Thu, 13 Sep 2018 21:07:09 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id v186-v6sm7088951pgd.25.2018.09.13.21.07.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Sep 2018 21:07:09 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 14 Sep 2018 13:37:02 +0930 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 1/5] powerpc/Makefiles: Fix clang/llvm build Date: Fri, 14 Sep 2018 13:36:45 +0930 Message-Id: <20180914040649.1794-2-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180914040649.1794-1-joel@jms.id.au> References: <20180914040649.1794-1-joel@jms.id.au> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nick Desaulniers , Anton Blanchard 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)