From nobody Mon Apr 29 00:27:24 2024 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; dkim=fail header.i=@quicinc.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; dmarc=fail(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1574032591; cv=none; d=zoho.com; s=zohoarc; b=DUTbQ/mRF7B02qoK/visQf9ljaJNhhrxmo+sSP30Udc4YpkytVNb04E85MhMycyuJm8W1aSH0OZk3BdW4ReoyZ0obsA0TMn2p33OSMBJHJCTIUbD/rmsATuSHWYJL+1fB4i0388dcNbxAyHZBQFK8i3vLXRYP7yjMCnjkN1FZv8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574032591; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=ERPaxh617UQPtKPM+O9NuiWP2Cp/ywJ6vcMN86MgFCQ=; b=me65btRkUI9MBDExs8XHMKPsuhEBzaOn7LVhUBkgo/vJnKBZWu0JZ6kkOEVGmHyv6FZy2ejnvJjRy4ST7qVZtlvdYMCXBTxXLfTQwMNhvPVjmd2eD3fNj6C3J+/TJw6hmo5h1Y5WLqGI9tPicRcvuHZAy8ElUoWFjPjYu+uUwn8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail header.i=@quicinc.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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1574032591005371.30255762797617; Sun, 17 Nov 2019 15:16:31 -0800 (PST) Received: from localhost ([::1]:56972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWTmL-0003u4-Uq for importer@patchew.org; Sun, 17 Nov 2019 18:16:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48939) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWTkf-0002Qj-S0 for qemu-devel@nongnu.org; Sun, 17 Nov 2019 18:14:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWTke-0005Is-8T for qemu-devel@nongnu.org; Sun, 17 Nov 2019 18:14:41 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:45041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iWTkd-0005Hk-UH for qemu-devel@nongnu.org; Sun, 17 Nov 2019 18:14:40 -0500 Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 17 Nov 2019 15:14:36 -0800 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg02-sd.qualcomm.com with ESMTP; 17 Nov 2019 15:14:35 -0800 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id 96D5E3DD; Sun, 17 Nov 2019 17:14:35 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1574032479; x=1605568479; h=from:to:cc:subject:date:message-id; bh=CCcz3lwT2Jw/rmh/2nariZEL4qmLojSeowjro3iQfk4=; b=hNs8oD5+/ZBSnWjqMlXYt5NaRxyvJp4sXUqjn3RPXa6mUz0D8gC8cHCu U3FZYfjC0h79c3xMkgCDXiOrhcZlFY21nKPyoz5AiL8JRGD168EqyCQG6 PN3jSeU3zuS6B9HrBuTScbJL2jMjhfC57WUbvROGIs321Yc+kCV0XDWXY w=; IronPort-SDR: 80NMW66ZcbRe4Zb7L36lNoO42XOpShmNNYq4ngk9a3io+5jMV5dZt217jDc7igg/DFzMIzhP/q d6qaWk9dg3s3gL3Y6pHja8Th0D519krNCbBqeEZTIXR8dWD60JTB199Dyc9V/6XPZELCan83h6 b0qp+HdR8RU57SiDKtFlsILrb7zF4w1yJILz0M+sYJCF1HIeRskPxxL0mW79ma88eBnhX8CqQA cO1EKaeaVv11rLTN+BRHisBZxCQINEHY6kPm0LPXzAFaz2Vd7W8UtmxzxffOYyPZkBQZ+KPj6o ETeW6esz5yCtGfZUoKi4xmDf From: Taylor Simpson To: alex.bennee@linaro.org, qemu-devel@nongnu.org Subject: [PATCH] Modify tests to work with clang Date: Sun, 17 Nov 2019 17:14:25 -0600 Message-Id: <1574032465-12186-1-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 199.106.114.38 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: Taylor Simpson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth --- tests/tcg/multiarch/float_helpers.c | 2 -- tests/tcg/multiarch/linux-test.c | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/tcg/multiarch/float_helpers.c b/tests/tcg/multiarch/floa= t_helpers.c index 8ee7903..bc530e5 100644 --- a/tests/tcg/multiarch/float_helpers.c +++ b/tests/tcg/multiarch/float_helpers.c @@ -79,11 +79,9 @@ char *fmt_16(uint16_t num) =20 #ifndef SNANF /* Signaling NaN macros, if supported. */ -# if __GNUC_PREREQ(3, 3) # define SNANF (__builtin_nansf ("")) # define SNAN (__builtin_nans ("")) # define SNANL (__builtin_nansl ("")) -# endif #endif =20 static float f32_numbers[] =3D { diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-t= est.c index 673d7c8..8a7c15c 100644 --- a/tests/tcg/multiarch/linux-test.c +++ b/tests/tcg/multiarch/linux-test.c @@ -485,7 +485,11 @@ static void test_signal(void) act.sa_flags =3D SA_SIGINFO; chk_error(sigaction(SIGSEGV, &act, NULL)); if (setjmp(jmp_env) =3D=3D 0) { - *(uint8_t *)0 =3D 0; + /* + * clang requires volatile or it will turn this into a + * call to abort() instead of forcing a SIGSEGV. + */ + *(volatile uint8_t *)0 =3D 0; } =20 act.sa_handler =3D SIG_DFL; --=20 2.7.4