Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932914AbdDESJ5 (ORCPT ); Wed, 5 Apr 2017 14:09:57 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:55004 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755669AbdDESIa (ORCPT ); Wed, 5 Apr 2017 14:08:30 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com v35I8RB9003727 X-Nifty-SrcIP: [209.85.161.179] MIME-Version: 1.0 In-Reply-To: <20170317001520.85223-3-md@google.com> References: <20170317001520.85223-1-md@google.com> <20170317001520.85223-3-md@google.com> From: Masahiro Yamada Date: Thu, 6 Apr 2017 03:08:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/7] Makefile, x86, LLVM: disable unsupported optimization flags To: Michael Davidson Cc: Michal Marek , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Herbert Xu , "David S. Miller" , Shaohua Li , Alexander Potapenko , Dmitry Vyukov , Matthias Kaehlcke , X86 ML , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-crypto@vger.kernel.org, linux-raid@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 532 Lines: 23 Hi Michael, 2017-03-17 9:15 GMT+09:00 Michael Davidson : > Unfortunately, while clang generates a warning about these flags > being unsupported it still exits with a status of 0 so we have > to explicitly disable them instead of just using a cc-option check. > > Signed-off-by: Michael Davidson Instead, does the following work for you? https://patchwork.kernel.org/patch/9657285/ You need to use $(call cc-option, ...) for -falign-jumps=1 and -falign-loops=1 -- Best Regards Masahiro Yamada