Make avx2 configure test work with -O2
commitfc6e1de9d885377e1e68e50e25ed5425540b9b81
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 10 Jun 2016 11:16:17 +0000 (10 12:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:04 +0000 (16 18:39 +0200)
tree55ae1dc18b78deb83f614700ea2d66fa8ed1bd4d
parentac99c624c6015c264ff9997d6965bccfae0f818f
Make avx2 configure test work with -O2

When configured with --extra-cflags=-O2 gcc optimised out the test
and the readelf failed the check leaving avx2 disabled.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <1465557378-24105-2-git-send-email-dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure