x86: Use -mno-avx when available
authorAndi Kleen <ak@linux.intel.com>
Wed, 28 Mar 2012 18:51:17 +0000 (11:51 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 30 Mar 2012 17:06:39 +0000 (10:06 -0700)
commitc0e9afc0da6cb0f11497e5ea83377b3c451450e0
tree37d6e2f3771b86bbfa12b7a534ebc8f96950493e
parentf6365201d8a21fb347260f89d6e9b3e718d63c70
x86: Use -mno-avx when available

On gccs that support AVX it's a good idea to disable that too, similar to
how SSE2, SSE1 etc. are already disabled. This prevents the compiler
from generating AVX ever implicitely.

No failure observed, just from review.

[ hpa: Marking this for urgent and stable, simply because the patch
  will either have absolutely no effect *or* it will avoid potentially
  very hard to debug failures. ]

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1332960678-11879-1-git-send-email-andi@firstfloor.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: <stable@vger.kernel.org>
arch/x86/Makefile