From: Masahiro Yamada Subject: Re: [PATCH 2/7] Makefile, x86, LLVM: disable unsupported optimization flags Date: Thu, 6 Apr 2017 03:08:26 +0900 Message-ID: References: <20170317001520.85223-1-md@google.com> <20170317001520.85223-3-md@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 To: Michael Davidson Return-path: In-Reply-To: <20170317001520.85223-3-md@google.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org 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