Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751367AbdCQVfY (ORCPT ); Fri, 17 Mar 2017 17:35:24 -0400 Received: from terminus.zytor.com ([65.50.211.136]:34582 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179AbdCQVfX (ORCPT ); Fri, 17 Mar 2017 17:35:23 -0400 Subject: Re: [PATCH 2/7] Makefile, x86, LLVM: disable unsupported optimization flags To: Michael Davidson , Michal Marek , Thomas Gleixner , Ingo Molnar , Herbert Xu , "David S. Miller" , Shaohua Li References: <20170317001520.85223-1-md@google.com> <20170317001520.85223-3-md@google.com> Cc: Alexander Potapenko , Dmitry Vyukov , Matthias Kaehlcke , x86@kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-raid@vger.kernel.org From: "H. Peter Anvin" Message-ID: <74cbe721-40c0-f78c-7a55-9f4fcf63c7d3@zytor.com> Date: Fri, 17 Mar 2017 14:34:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 551 Lines: 19 On 03/17/17 14:32, H. Peter Anvin wrote: > > NAK. Fix your compiler, or use a wrapper script or something. It is > absolutely *not* acceptable to disable this since future versions of > clang *should* support that. > > That being said, it might make sense to look for a key pattern like > "(un|not )supported" on stderr the try-run macro. Is there really no > -Wno- or -Werror= option to turn off this craziness? > Well, guess what... I found it myself. -W{no-,error=}ignored-optimization-argument Either variant will make this sane. -hpa