From: H. Peter Anvin Date: Thu, 27 May 2010 19:02:00 +0000 (-0700) Subject: x86, cpufeature: Unbreak compile with gcc 3.x X-Git-Tag: v2.6.35-rc1~11^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba4f22c426ba04b00fd717318d50620c621a0e1;p=pandora-kernel.git x86, cpufeature: Unbreak compile with gcc 3.x gcc 3 is too braindamaged to be able to compile static_cpu_has() -- apparently it can't tell that a constant passed to an inline function is still a constant -- so if we're using gcc 3, just use the dynamic test. This is bad for performance, but if you care about performance, don't use an ancient, known-to-optimize-poorly compiler. Reported-and-tested-by: Eric Dumazet LKML-Reference: <4BF2FF82.7090005@zytor.com> Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed