From nobody Sun Oct 5 05:26:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1565324439; cv=none; d=zoho.com; s=zohoarc; b=PXH87cZA+9pmk37cFIDhRpwYUIpn8GbZTD0wCzVTbbHQW9Xbx2s4BzEsqW3YN/ATX30ayykeH53XPDvr9yVPglJ/0HRpmyXRyQSKcU6xTcWnRYMC+ddlxQO/uX767xKXn/MxLzmR+yxwyQfndxY7jvE3QgrJleUt/Mk+T5nWOBY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565324439; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=xkmcjSA1dDa1vFGCns3xcCkrk178B2GGq9OcsYaTU/Q=; b=A/h5hM7+LinMUiHBlRHtyxjMd1UkMNKpYxwVYh5UPr0OlZd3WjFTo6fEpghsYCAo0Y5qT6BJ4Ah6LW2og847RUIlocZ625k3n0UrSBvXaGMbQ+tVbtNSN3YiIg8QO+sYLxK4XKQvw3lcKiQjzWEtAgxpBdyOVfwpKwS/aOG6g3w= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565324439703265.4128908416475; Thu, 8 Aug 2019 21:20:39 -0700 (PDT) Received: from localhost ([::1]:56280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvwOH-0007qV-MX for importer@patchew.org; Fri, 09 Aug 2019 00:20:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55111) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvwNt-0007NK-K2 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 00:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvwNs-0007LN-M2 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 00:20:09 -0400 Received: from muon.bsdio.com ([65.103.231.193]:63720) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvwNs-0007Kb-HX; Fri, 09 Aug 2019 00:20:08 -0400 Received: from muon.bsdio.com (localhost [127.0.0.1]) by muon.bsdio.com (Postfix) with ESMTP id B3D7681CB1; Thu, 8 Aug 2019 22:20:06 -0600 (MDT) Received: from muon.bsdio.com ([127.0.0.1]) by muon.bsdio.com (muon.bsdio.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NrDJ8IcaDSgT; Thu, 8 Aug 2019 22:20:03 -0600 (MDT) Received: from photon.int.bluestop.org (unknown [10.0.10.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bsdio.com (Postfix) with ESMTPSA; Thu, 8 Aug 2019 22:20:03 -0600 (MDT) From: Rebecca Cran To: qemu-devel@nongnu.org, Michael Tokarev , Laurent Vivier , qemu-trivial@nongnu.org Date: Thu, 8 Aug 2019 22:19:52 -0600 Message-Id: <20190809041952.57302-1-rebecca@bsdio.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 65.103.231.193 Subject: [Qemu-devel] [PATCH] Update the avx2 configure test to be compatible with clang X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rebecca Cran Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" clang doesn't support the GCC pragma to enable AVX2, but instead requires the command line option -mavx2. Since GCC also supports that, remove the pragma lines and add the -mavx2 option when building the test. Signed-off-by: Rebecca Cran --- configure | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure b/configure index 714e7fb6a1..30d6c02ab4 100755 --- a/configure +++ b/configure @@ -5392,8 +5392,6 @@ fi =20 if test "$cpuid_h" =3D "yes" && test "$avx2_opt" !=3D "no"; then cat > $TMPC << EOF -#pragma GCC push_options -#pragma GCC target("avx2") #include #include static int bar(void *a) { @@ -5402,7 +5400,7 @@ static int bar(void *a) { } int main(int argc, char *argv[]) { return bar(argv[0]); } EOF - if compile_object "" ; then + if compile_object "-mavx2" ; then avx2_opt=3D"yes" else avx2_opt=3D"no" --=20 2.22.0