]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Disallow gcc versions 4.1.{0,1}
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 17:29:43 +0000 (09:29 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 17:29:43 +0000 (09:29 -0800)
commitf9d14250071eda9972e4c9cea745a11185952114
treea8839b522bf83b96a238bd6cb0e88093731a1e24
parentf153b82121b0366fe0e5f9553545cce237335175
Disallow gcc versions 4.1.{0,1}

These compiler versions are known to miscompile __weak functions and
thus generate kernels that don't necessarily work correctly.  If a weak
function is int he same compilation unit as a caller, gcc may end up
inlining it, and thus binding the weak function too early.

See

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27781

for details.

Cc: Adrian Bunk <bunk@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compiler-gcc4.h