From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753797AbdK3Reu (ORCPT ); Thu, 30 Nov 2017 12:34:50 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:39594 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753492AbdK3Res (ORCPT ); Thu, 30 Nov 2017 12:34:48 -0500 X-Google-Smtp-Source: AGs4zMYCyhx6B4cyUsPk4UnoV+xbcl2xmk8m7QVXg5gHjrU5BPEADUEsrkEkSBVHwAgYXcvZ4HaYfQ== Date: Thu, 30 Nov 2017 09:34:43 -0800 From: Sami Tolvanen To: Masahiro Yamada Cc: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel , Linux Kbuild mailing list , Linux Kernel Mailing List , Mark Rutland , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Subject: Re: [PATCH 2/3] kbuild: add cc-if-name-version and compiler-specific variants Message-ID: <20171130173443.GA90451@samitolvanen.mtv.corp.google.com> References: <20171129000011.55235-1-samitolvanen@google.com> <20171129000011.55235-3-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 Thu, Nov 30, 2017 at 09:21:49PM +0900, Masahiro Yamada wrote: > BTW, did this patch work in your test? Yes, but it looks like /bin/sh is symlinked to bash on my system. I can reproduce the issue with dash. > As for the macro names, maybe > > __cc-ifversion, __cc-if-fullversion for consistency? > I think you can do like follows to avoid code duplication. > > # backward compatibility > cc-ifversion = $(gcc-ifversion) > cc-if-fullversion = $(gcc-if-fullversion) Sure, both changes sound good to me. I'll fix these in v2. Sami