Re: Build failures with gcc 4.5 and older
From: Guenter Roeck
Date: Tue Aug 14 2018 - 14:01:50 EST
On Tue, Aug 14, 2018 at 10:20:32AM -0700, Linus Torvalds wrote:
> On Tue, Aug 14, 2018 at 10:09 AM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> >
> > Does that mean that gcc 4.5 and older are now officially no longer
> > supported for compiling the kernel ?
>
> I guess we might as well make this the excuse for making that official.
>
> Maybe it's trivially fixable, but I don't even want to look at it,
> since we've talked about updating the minimum gcc version so long.
>
> > If so, would it make sense to update include/linux/compiler-gcc.h
> > accordingly ?
>
> Unless somebody cares, and comes with a trivial fix to make old
> compilers happy, let's just do that.
>
Only implication is that it is the death warrant for unicore32,
since the only compiler available for it is gcc 4.4.2.
Another question is if there are still companies out there who only
permit gcc 4.4 and older due to its switch to GPL3.
Not that I care about any of those. Building the kernel with those old
compilers without hitting some compiler bug is getting more and more
difficult.
Guenter