From patchwork Wed Nov 20 10:58:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 179831 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1934899ilf; Wed, 20 Nov 2019 03:04:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwHd4Twn+SKjgpGeNz1JcbN+4qCI4pYA8Erykbe1xKdXHEGe5GFXiECXYapDgXT0eBGEawd X-Received: by 2002:a17:906:5e52:: with SMTP id b18mr4584433eju.318.1574247844744; Wed, 20 Nov 2019 03:04:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574247844; cv=none; d=google.com; s=arc-20160816; b=f6x3TxMi3f1rXOcbHQ/Dslybux+wcl8R47rLTfG66IyfJJqHiqd4coWbYW7BVKB9ma i4a9MU1dWcYtS6u/X8/o2zRayvqVMxMZmiiuZuqulKSyEDxO+1R6AKXqGnypTsWRN8Oh x5r1O1RepHZhD019fTo36j0XS44HBJbg5DeSrzqkikICnFmIhz9ku9VQ0RNMnLCVP9hi zbbLmoKdOAGZdvGgYW/E0eYH3IKgO1u5H9PG8XfNaQukpKq0jET1zcxmw8u0/MEi6jKy 0jY4VzQ0q3EYtwcimWHtfvUrk0lyY52tcSqkzqOSyDfewSkjYo6r7UmyESnB5/AjwGCr DYmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=NY5Huuw32tJm6WEnS0WeU/lG0oOqGgFOecOoWzPIhZo=; b=an00NL433BpojYPUXPKumdYQUEG/YMxtjDa4qn6tnKuK8EQhiMfxp3uIXYLpoMfils Hh5p2WasgctIBJlyy4kzBeCdITnSkI7lthvk+SvPSO4DWjURtwKWLvmcRKUxMG6Xx1bl KwIn5+bDxKCqLdHuBmib4N7I0bGRoCaullX1bfenLR7GsyUitXxQr1C8YRLB9JSMPZYE zAQYWmWGJpwJJibVL3VzSuWb42a4qw0UwQLUaiMILXBaER27vegtzhr4IIVZ+yTaOUYB iYBErB1qyx4TLOQ7k/6272BgypmSkvUI54tzb4EtTGWv5okQaHxOQjioRCJd0lYo+5OY gtGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZEvSkosH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ca23si7629148ejb.341.2019.11.20.03.04.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Nov 2019 03:04:04 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZEvSkosH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNmF-0004P1-AX for patch@linaro.org; Wed, 20 Nov 2019 06:04:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNga-00070O-LC for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXNgZ-00072B-9d for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:12 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:38598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXNgY-0006zw-Sp for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:11 -0500 Received: by mail-wr1-x431.google.com with SMTP id i12so27602461wro.5 for ; Wed, 20 Nov 2019 02:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NY5Huuw32tJm6WEnS0WeU/lG0oOqGgFOecOoWzPIhZo=; b=ZEvSkosHC7vUHeaLNNN7RqZlililn2T3fnn78bfdiNfg2sW3OVdvY2T9wf8mDBDtHg JiKgyN0RyCJSYgpDcqxA/XZ/FUJFPlpKLVJmtJGoIm0IF4VWGGmZMxLT8wG8r/IuysEN kYrc0of9n/3lPNM0Y65PKarqJLnOHu0srpikaLWSlFy3dBHJY01iyLtOntpbdrcrYrpL bixs5MaNhl4heP89N41Ak5foapD8Jc515jA+m0SvDa2ZdEpnEIRBRGT9vKwn8nQhV8n5 i23DhON90gbGMYVKZMs1M3zWb74xkxlcoz4WXGEO3g/e0yQIVquGDIrGJOgNDgkzHsk2 UfPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NY5Huuw32tJm6WEnS0WeU/lG0oOqGgFOecOoWzPIhZo=; b=s6SCTve6o6DvNuJDbDwUKL+t4D+A1m9r1+2puQ3oau7thKC7ROWhWx7XiouKP2BnS6 X0H3qxJN+OAAQtI5PYwYNprFhAJIQ/57vkF6rdvRmpjAvOUaI4WWXefrSLC6QE7hhESo U91jfrwsoL83oaT/dWvL9+AGhGsHcwQ7MRGAqnfHZ9yNi7wWQL1nZRe4P2xHVuaEAL3q yVgwrogrwY7csCFwSp05WHzkR0CHC/AK9OPH+OcCbFlaAa+J4IDqrgQmWC8WnCRDZk8i XrwqBoxoGqM9X2v+zijyhm9FOi81RAd6BPgmpXh5XlUXWTf7WpJxC8i4pl9Bau47mlT0 YWXQ== X-Gm-Message-State: APjAAAVOIgYRsMKH0NDo4a/gtsL9mFFOOCfqbNVfCFPfamFLIf/oA/n5 Q+91gN5m3ziU33tVNoivm5nx8Q== X-Received: by 2002:a5d:6789:: with SMTP id v9mr2428093wru.344.1574247489614; Wed, 20 Nov 2019 02:58:09 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l4sm6198890wml.33.2019.11.20.02.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:58:07 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AE5021FF92; Wed, 20 Nov 2019 10:58:01 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 5/5] tests/tcg: modify multiarch tests to work with clang Date: Wed, 20 Nov 2019 10:58:01 +0000 Message-Id: <20191120105801.2735-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120105801.2735-1-alex.bennee@linaro.org> References: <20191120105801.2735-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 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: Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , Taylor Simpson , Richard Henderson , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Taylor Simpson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <1574032465-12186-1-git-send-email-tsimpson@quicinc.com> [AJB: tweak header line] Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/tests/tcg/multiarch/float_helpers.c b/tests/tcg/multiarch/float_helpers.c index 8ee7903c785..bc530e5732d 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) #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 static float f32_numbers[] = { diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-test.c index 673d7c8a1c2..8a7c15cd312 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 = SA_SIGINFO; chk_error(sigaction(SIGSEGV, &act, NULL)); if (setjmp(jmp_env) == 0) { - *(uint8_t *)0 = 0; + /* + * clang requires volatile or it will turn this into a + * call to abort() instead of forcing a SIGSEGV. + */ + *(volatile uint8_t *)0 = 0; } act.sa_handler = SIG_DFL;