From patchwork Fri May 4 02:10:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 908431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40cb8z0mrMz9s0q for ; Fri, 4 May 2018 12:11:15 +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="NNa2fzB9"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40cb8y69fPzF1Ph for ; Fri, 4 May 2018 12:11:14 +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="NNa2fzB9"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::244; helo=mail-pf0-x244.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="NNa2fzB9"; dkim-atps=neutral Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (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 40cb8Y0lljzF1Pp for ; Fri, 4 May 2018 12:10:53 +1000 (AEST) Received: by mail-pf0-x244.google.com with SMTP id a22so2116179pfn.6 for ; Thu, 03 May 2018 19:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=qilNXpWGwl7mswF+OqJALSuK2Rs1F1r3vZcLuLov9oU=; b=NNa2fzB9bT9C69f04qLtSWIPWpa3RtmJMC+L8mpQoQqxruZRApbajCrlOPeS27u8hr w8/g6VrGriljGSCpJ1x0Gurd4f63dWkv0iSintjxkzQ/Z5mH3nk/B/KCa+junjnC6UDS hjiARprBU3xoJlbkVnMsjqV3wa6LRLg0ef0C7kI6U9ywG0seK5SLqGrb/LyhhsEH36ks xS+Zf1dL3Seyw0lkoSavPnbGWfi6QYXSJlcHpFa1m+7rbxbFWEhV74kELC3FlrWJQ3Jl Gr1Y0UzR2j+eYrfcpkK0HTpUvMSOfQZ920jXU7aic42w5l+9maqD5rC3+WjZHbzTkvmK CNwQ== 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:subject:date:message-id :in-reply-to:references; bh=qilNXpWGwl7mswF+OqJALSuK2Rs1F1r3vZcLuLov9oU=; b=rOZWG3tnSmYolQtPi+AjU06vSZZcfWE1USF06Sr3Fr/RvtwxK5HKyzJAz1HEt4Xncs zeV0dpzdAh4QcxBV8+Tvd20gVSoyDwrZoKmXQLVdi3eaSf3tp1ibAcD0AjKGvbzeywzj J53LnIFd/OO4O7ov8yrjG851kksB/wkNvfQA0NCHl6H4XQALMglaHKb2D3661AJHHwtX dtPSFyl8W/El8TKFRDw2xXhfLALlapLTTwqHrk5NVVNlARdm2t17RTCw7nzJaV8hO0nX Eofvewj+yzsxot+T+qw0KvK1hvTcedWXvHKwhpf/YWNP+T7OX1RfLJSphoz571hZ4kmo sBwA== X-Gm-Message-State: ALQs6tBJNqefIS6t+iiJYcg++jdfSyDE/MsIGai57ACHi0vwEfEZH0Bw ChEuqS7oLo9U+kGa6gHrxrMpsx1+ X-Google-Smtp-Source: AB8JxZrxutCWdJ+DVJl2yyJTGxv95bUw4iOq4v3+uqLV7Iw/l5b82HOgRXFh8eEpJdiE7A9hNDEtIQ== X-Received: by 2002:a17:902:33a5:: with SMTP id b34-v6mr26189041plc.232.1525399850851; Thu, 03 May 2018 19:10:50 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id k7-v6sm16914425pgc.42.2018.05.03.19.10.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 19:10:49 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 04 May 2018 11:40:44 +0930 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Fri, 4 May 2018 11:40:26 +0930 Message-Id: <20180504021036.17027-2-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180504021036.17027-1-joel@jms.id.au> References: <20180504021036.17027-1-joel@jms.id.au> Subject: [Skiboot] [PATCH v2 01/11] Makefile: Put some ppc options behind try-cflag tests X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Clang errors out when attempting to build with these flags present. Signed-off-by: Joel Stanley --- Makefile.main | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.main b/Makefile.main index 584d46df3758..72b68219e9ac 100644 --- a/Makefile.main +++ b/Makefile.main @@ -69,7 +69,7 @@ endif CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 CFLAGS += -mcpu=power7 CFLAGS += -Wl,--oformat,elf64-powerpc -CFLAGS += -ffixed-r13 +CFLAGS += $(call try-cflag,$(CC),-ffixed-r13) CFLAGS += $(call try-cflag,$(CC),-std=gnu11) ifeq ($(ELF_ABI_v2),1) CFLAGS += $(call try-cflag,$(CC),-mabi=elfv2) @@ -146,9 +146,9 @@ endif # Do not use the floating point unit CFLAGS += -msoft-float # Do not use string instructions -CFLAGS += -mno-string +CFLAGS += $(call try-cflag,$(CC),-mno-string) # do not use load/store multiple word instrcutions -CFLAGS += -mno-multiple +CFLAGS += $(call try-cflag,$(CC),-mno-multiple) # do not use any automatic vector foo # While it would be safe during boot, we don't save/restore across OPAL calls CFLAGS += $(call try-cflag,$(CC),-mno-vsx) \