kconfig: add CC_IS_GCC and GCC_VERSION
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 28 May 2018 09:22:01 +0000 (18:22 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 8 Jun 2018 09:56:01 +0000 (18:56 +0900)
commita4353898980cc46b28c03fc401d4d916d82c6f4f
tree4dd1672d9992cd8d4cfc85b6e7889f2dbad6a1e6
parent2a61f4747eeaa85ce26ca9fbd81421b15facd018
kconfig: add CC_IS_GCC and GCC_VERSION

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.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
init/Kconfig