diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2016-06-10 12:16:18 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-16 18:39:04 +0200 |
commit | 4fb8320a2efb2216c7ddcc929ad0362f4e285681 (patch) | |
tree | 4aa9fe07e20798d13869213b11388fe8af99607f /util/cutils.c | |
parent | fc6e1de9d885377e1e68e50e25ed5425540b9b81 (diff) | |
download | qemu-4fb8320a2efb2216c7ddcc929ad0362f4e285681.zip qemu-4fb8320a2efb2216c7ddcc929ad0362f4e285681.tar.gz qemu-4fb8320a2efb2216c7ddcc929ad0362f4e285681.tar.bz2 |
avx2 configure: Use primitives in test
Use the avx2 primitives during the test, thus making sure that the
compiler and assembler could actually use avx2.
This also detects the failure case on gcc 4.8.x with -save-temps
and avoids the need for the gcc version check in cutils.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <1465557378-24105-3-git-send-email-dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/cutils.c')
-rw-r--r-- | util/cutils.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/util/cutils.c b/util/cutils.c index 43d1afb..5830a68 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -256,13 +256,7 @@ static size_t buffer_find_nonzero_offset_inner(const void *buf, size_t len) return i * sizeof(VECTYPE); } -/* - * GCC before version 4.9 has a bug which will cause the target - * attribute work incorrectly and failed to compile in some case, - * restrict the gcc version to 4.9+ to prevent the failure. - */ - -#if defined CONFIG_AVX2_OPT && QEMU_GNUC_PREREQ(4, 9) +#if defined CONFIG_AVX2_OPT #pragma GCC push_options #pragma GCC target("avx2") #include <cpuid.h> |