From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <5409D0EA.8000203@zytor.com> Date: Fri, 05 Sep 2014 08:04:10 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 To: Andrew Morton , Richard Weinberger CC: Sasha Levin , Ingo Molnar , LKML , stable@vger.kernel.org, Greg KH , Hannes Frederic Sowa Subject: Re: [PATCH] kernel: add support for gcc 5 References: <1409845039-5751-1-git-send-email-sasha.levin@oracle.com> <20140904141215.9e6125150824d0768aedbfcb@linux-foundation.org> <20140904142529.860f4dc4514def7fb7a9d365@linux-foundation.org> In-Reply-To: <20140904142529.860f4dc4514def7fb7a9d365@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: 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