[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64N.0701021500480.6449@attu4.cs.washington.edu>
Date: Tue, 2 Jan 2007 15:09:39 -0800 (PST)
From: David Rientjes <rientjes@...washington.edu>
To: Linus Torvalds <torvalds@...l.org>
cc: Adrian Bunk <bunk@...sta.de>,
Alistair John Strachan <s0348365@....ed.ac.uk>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>, Greg KH <greg@...ah.com>,
Chuck Ebbert <76306.1226@...puserve.com>,
Andrew Morton <akpm@...l.org>
Subject: Re: kernel + gcc 4.1 = several problems
On Tue, 2 Jan 2007, Linus Torvalds wrote:
> Traditionally, afaik, -Os has tended to show compiler problems that
> _could_ happen with -O2 too, but never do in practice. It may be that
> gcc-4.1 without -Os miscompiles some very unusual code, and then with -Os
> we just hit more cases of that.
>
gcc optimizations were almost completely rewritten between 3.4.6 and 4.1,
and one of the subtle changes that may have been introduced is with regard
to the heuristics used to determine whether to inline an 'inline' function
or not when using -Os. This problem can show up in dynamic linking and
break on certain architectures but should be detectable by using -Winline.
David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists