Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp258793imm; Mon, 4 Jun 2018 17:09:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIbVg9ntg7aV62ucSwyz4bMi/GvGyaCTQ3xSWUzwfGuer/Ae6IQ+JrIGrHzJi3o+3clHBCG X-Received: by 2002:a62:e005:: with SMTP id f5-v6mr14203778pfh.88.1528157374799; Mon, 04 Jun 2018 17:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528157374; cv=none; d=google.com; s=arc-20160816; b=QNucowN9Eglsza7xI9ZctsxX2U3oX0OfinLueR3Mg0PU9fg53YdOPLYC2ZXxly7rSt QftS1t8AyWVqfb2dmYcxGNnnKOkzBF8vphGhStp4VdrgaRUuFJYWNUIz33yzItuNZWwt rKyTjqdY0iNGzxCOUH22mb1vZu4+DH6tr6P1WZ7ns09Hj4af3Q8brLTWCjkfv7JbF8sw T53vbhcokVvfZ54CeEveWHmU2yNDYe3V+axIcRBQBQB3SzApUgZ9zKd6DK85PEPzgsyR h26pNIIdnlDWvNHBcz2tzRrKpHc9wlMhn+6Bu0hy2WjbA1Cpoflqwhcv/9tXwlA29N6V 9RNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=/Zun2G2dkj5GXd17ESx/SBfiRn/Tap100XLoWZPK1SE=; b=pzLYCgjf5shzeKfAHDPh59mHCD9pXFVrt6KhcnP0iPPAB/vKta74OuapVOjG6AeCEV nPIy6Q+vZyFkY/6OBRsQqv/o+6R7WBbbuCziAT+ywmSv2XyQiHnlUtEDnwZiHDhrHeZe eZoqN86umBJAT0zBuPUxqSVTdUY7/ACx/mZfhOzYm51zrbv5pPTDFJxe64V8Ec1OzuUA 0TOGL/anLiPJpciOdQf2L5x98cPbevm3Ewp9ES6zOeWkczOkhsY4GEtqBbdwh1gdvhVR 2uzdE3V+XS8M8Ft2Ivbo4Ejju8lw5Swz69fzaEnWBQqHmRVHkQfQ40N8E1atlybpZld2 NZeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=F/yAKM7l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o26-v6si8920144pfe.44.2018.06.04.17.09.20; Mon, 04 Jun 2018 17:09:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=F/yAKM7l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbeFEAIy (ORCPT + 99 others); Mon, 4 Jun 2018 20:08:54 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:45305 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbeFEAIx (ORCPT ); Mon, 4 Jun 2018 20:08:53 -0400 Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w5508dvO012237; Tue, 5 Jun 2018 09:08:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w5508dvO012237 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528157320; bh=/Zun2G2dkj5GXd17ESx/SBfiRn/Tap100XLoWZPK1SE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=F/yAKM7l+dNsrBfx9rLGbyA1z/DJCoOkF4fV/Fyh+AiINau79KlYa4Ee0isW3tnsr 8j9IcxLK6zgC7JLQH7Elz0rZuVuMGRY8o4eHLl2RJR8X1uwh0AuFgm/ATKyvY8HP8A ArNSV+XomvLCWA3PWdLgOnJTipCs6AB2RdcxpV+mivoE7fyOW/IHmIUSuA6YCcdaMV rAL9ioQla/perXDzOvawzcW+Zt01cjGfGVCgE2GZtxJgg0f7q4uA0zwL/H3TZv1JIo h5noN3ULyHlkjqMZuI+gAsYeT0a2S+3GOhEwt+LWoffS8kU9wLkSRCBfygzuYBisRv iWphw4jj7lmWg== X-Nifty-SrcIP: [209.85.213.43] Received: by mail-vk0-f43.google.com with SMTP id o138-v6so305384vkd.3; Mon, 04 Jun 2018 17:08:40 -0700 (PDT) X-Gm-Message-State: ALKqPwe3bcLq1bgXieEb9ssS1UjpFV3XWAJarRuH4WvFIg13Tp0hHcd+ VnuuvUyMQRR4krK7kZRuZKjQCA3/MCb3rVECVlo= X-Received: by 2002:a1f:b143:: with SMTP id a64-v6mr14229844vkf.65.1528157319186; Mon, 04 Jun 2018 17:08:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 17:07:58 -0700 (PDT) In-Reply-To: References: <1527499328-13213-1-git-send-email-yamada.masahiro@socionext.com> <1527499328-13213-25-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Tue, 5 Jun 2018 09:07:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 24/31] kconfig: add CC_IS_GCC and GCC_VERSION To: Stefan Agner Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Kees Cook , Nicholas Piggin , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Linus Torvalds , linux-kbuild-owner@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan 2018-06-05 6:49 GMT+09:00 Stefan Agner : > Hi Masahiro, > > On 28.05.2018 11:22, Masahiro Yamada wrote: >> This will be useful to specify the required compiler version, >> like this: >> >> config FOO >> bool "Use Foo" >> depends on GCC_VERSION >= 40800 >> help >> This feature requires GCC 4.8 or newer. >> > > I tried using CC_IS_GCC today while using clang. It seems that it is set > to y despite I am using CC=clang. > > .config looks like this after config: > > ... > CONFIG_CC_IS_GCC=y > CONFIG_GCC_VERSION=40201 > CONFIG_CC_IS_CLANG=y > CONFIG_CLANG_VERSION=60000 > ... > > > I am using clang 6.0.0 on Arch Linux, which seems to return a version > when using gcc-version.sh: > ./scripts/gcc-version.sh clang | sed 's/^0*//' > 402 > > I guess that should not be the case? > What will 'clang --version' print on your machine?