From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932965AbdKOWGh (ORCPT ); Wed, 15 Nov 2017 17:06:37 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:43973 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932786AbdKOWGS (ORCPT ); Wed, 15 Nov 2017 17:06:18 -0500 X-Google-Smtp-Source: AGs4zMZ5N6t2NlVHC925mQjm2MyaMQ1aMukVFTyppi3oNwtek2vrYyhn8ZzCSr6SLjRr55tqBWTvFg== Date: Wed, 15 Nov 2017 14:06:14 -0800 From: Sami Tolvanen To: Kees Cook Cc: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , linux-arm-kernel@lists.infradead.org, linux-kbuild , LKML , Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Subject: Re: [PATCH v2 03/18] kbuild: move gcc-version.sh to cc-version.sh and add clang support Message-ID: <20171115220614.GA27176@samitolvanen.mtv.corp.google.com> References: <20171115213428.22559-1-samitolvanen@google.com> <20171115213428.22559-4-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 15, 2017 at 01:48:52PM -0800, Kees Cook wrote: > It might make sense to split this patch: do the move and refactoring, > then add clang support. Sure. > Though, won't this confuse some tests? A lot of cc-version tests are > expecting only gcc, yes? There's already a chance of this happening with cc-version. Currently, gcc-version.sh returns 0402 for clang 5.0, which probably doesn't have the same issues as gcc 4.2 did. While I didn't see anything new that would break on platforms that clang can currently compile, you're correct, we should probably have a macro that also checks for the compiler, or have separate macros for different compilers. I'll address these in v3. Sami