Re: [Qemu-devel] [PATCH] Improve avx2 configure test

2016-06-01 Thread Dr. David Alan Gilbert
Actually, skip this version, I've got a simple change that also rolls in the gcc 4.9 check (just removing the "-mavx2") - I'll post that after lunch. Dave * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > When configured with --extra-cflags=-O2 gcc

[Qemu-devel] [PATCH] Improve avx2 configure test

2016-06-01 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" When configured with --extra-cflags=-O2 gcc optimised out the test and the readelf failed the check leaving avx2 disabled. The fix for that is to remove 'static' on 'foo'. At the same time, I thought it best to be more paranoid on checking whether both the compiler