From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: David Laight <David.Laight@ACULAB.COM>
Cc: Nathan Lynch <Nathan_Lynch@mentor.com>,
Peter Hurley <peter@hurleysoftware.com>,
Otavio Salvador <otavio@ossystems.com.br>,
Linus Torvalds <torvalds@linux-foundation.org>,
Nicolas Pitre <nico@fluxnic.net>,
Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] ARM: Blacklist GCC 4.8.0 to GCC 4.8.2 - PR58854
Date: Thu, 16 Oct 2014 15:29:44 +0100 [thread overview]
Message-ID: <20141016142944.GR12379@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1C9D80CC@AcuExch.aculab.com>
On Thu, Oct 16, 2014 at 10:30:30AM +0000, David Laight wrote:
> > +#ifdef __GNUC__
> > #if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
> > #error Your compiler is too buggy; it is known to miscompile kernels.
> > -#error Known good compilers: 3.3
> > +#error Known good compilers: 3.3, 4.x
>
> Except that isn't true since 4.8.0 isn't a good compiler.
>
> > +#endif
> > +#if GCC_VERSION >= 40800 || GCC_VERSION < 40803
> > +#error Your compiler is too buggy; it is known to miscompile kernels
> > +#error and result in filesystem corruption and oopses.
> > +#endif
> > #endif
>
> You are mixing the style of the version check.
> Why not the single test:
> #if GCC_VERSION < 30300 || (GCC_VERSION >= 40800 && GCC_VERSION < 40803)
> #error Your compiler is too buggy; it is known to miscompile code.
> #error Known good compilers: 3.3 onwards excluding 4.8.0 through 4.8.2
> #endif
As you have just nicely demonstrated, changing what's already there can
cause unintentional changes to creep in. The original test tested for
GCC 3 compilers older than GCC 3.3, excluding GCC 2.96 and older. Your
version blacklists everything before GCC 3.3.
Such a change should be a separate patch. Moreover, if we really do want
to blacklist all compilers older than GCC 3.3, then that too needs an
explanation in the comments above this block, and in commit message.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
prev parent reply other threads:[~2014-10-16 14:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 21:56 [PATCH] ARM: Blacklist GCC 4.8.0 to GCC 4.8.2 - PR58854 Russell King
2014-10-15 22:18 ` Peter Hurley
2014-10-16 0:18 ` Russell King - ARM Linux
2014-10-16 0:44 ` Peter Hurley
2014-10-16 14:58 ` Nicolas Pitre
2014-10-17 13:41 ` Russell King - ARM Linux
2014-10-19 9:55 ` Russell King - ARM Linux
[not found] ` <CA+55aFw_N=E9O-7VknWTzjNgYG-tB-8736diA1r7K=50b+0czQ@mail.gmail.com>
2014-10-19 18:51 ` Russell King - ARM Linux
2014-10-19 20:04 ` Linus Torvalds
2014-10-19 20:14 ` Russell King - ARM Linux
2014-10-19 20:28 ` Olof Johansson
2014-10-16 10:30 ` David Laight
2014-10-16 14:29 ` Russell King - ARM Linux [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141016142944.GR12379@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=David.Laight@ACULAB.COM \
--cc=Nathan_Lynch@mentor.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=otavio@ossystems.com.br \
--cc=peter@hurleysoftware.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox