Re: [PATCH] kernel: add support for gcc 5

From: H. Peter Anvin
Date: Fri Sep 05 2014 - 11:05:13 EST


On 09/04/2014 02:25 PM, Andrew Morton wrote:
>>
>> CC'ing Hannes, he sent a much simpler gcc5 patch a few days ago.
>> https://lkml.org/lkml/2014/8/26/710
>
> That approach won't last for long - as soon as we add some
> gcc5-specific thing, we'll need a new file.
>
> Let history be a guide:
>
> diff -u include/linux/compiler-gcc3.h include/linux/compiler-gcc4.h

It seems much saner to do that branching when we actually need to. In
the meantime I suspect that a handful of redefinitions would actually be
cleaner.

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/