Re: [PATCH] include/linux/compiler*.h: make compiler-*.h mutually exclusive

From: Linus Torvalds
Date: Wed Aug 22 2018 - 20:22:03 EST


On Wed, Aug 22, 2018 at 4:39 PM Nick Desaulniers
<ndesaulniers@xxxxxxxxxx> wrote:
>
> Rather than always including compiler-gcc.h then undefining or
> redefining macros in compiler-intel.h or compiler-clang.h, let's
> separate out the compiler specific macro definitions into mutually
> exclusive headers, do more proper compiler detection, and keep shared
> definitions in compiler_types.h.

Ack, especially with the other cleanups leading to

> 9 files changed, 133 insertions(+), 253 deletions(-)

and I just took it directly, since I had taken the original
cafa0010cd51 directly too.

I'm sure this can still be tweaked, but let's get the baseline in and working.

Linus