From nobody Fri Nov 7 00:45:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544630015361595.8928187705426; Wed, 12 Dec 2018 07:53:35 -0800 (PST) Received: from localhost ([::1]:45712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6pI-0008U5-6F for importer@patchew.org; Wed, 12 Dec 2018 10:53:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6Mh-0000zk-8c for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX6Mg-0000QG-2h for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:59 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:53269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX6Mf-0000PV-R1 for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:57 -0500 Received: by mail-wm1-x335.google.com with SMTP id y1so6138256wmi.3 for ; Wed, 12 Dec 2018 07:23:57 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u10sm15878859wrr.33.2018.12.12.07.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 07:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=LI60ZqHN3sdmSISYXNeRkyBQ4KBQiPe1Wgfwop1y080=; b=pH2lmhqDyjEH3cjytyOx8Noo/pFRUiGvSoP+TC1tcTQ3lod8pOeQFreTB6hHX10+ii GnIcPgw2Jg7DNiNHyGN1YSGXqZVpUCl/2Hm0/j+FWOp9t+78qaFTVlGA7lu3moZ3yDHB sSoqINAECQ3XAVKOYLVi03968cPNNZGfMOw/6ona3upMZuxDmLuXZJXi6d3ZyEV2maNC LOEzuodXc3FxkftD64v3UNrg01wIWCyOBqJ7X5x11JuxeOCG9EPRAbe+5tGqcG2Xqvzg 7YNqz/TpwCqQnbY6jY99l+zZ5wdzsDyImn7mqIRlfPpubLxWHFKn3XF1v+XNb6WOv4bP ABvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=LI60ZqHN3sdmSISYXNeRkyBQ4KBQiPe1Wgfwop1y080=; b=YekKvfXijxC/8o+Bnm9SIHcVcF8lKcwFYu06WZm5juPurU4ojoBd4ZkZZjGJ/bqbWv 57TVqKX7nLT5DgQXDsBNk9lk2ppp1CxlQGosG8JFrhDgcWk2imeuhW1hZLuuxAWQPPOn PSrJBH5ht9795b9qsmLImVQPHDFbUOsOjsjw3x2skx/Zr3WrmSd6GCwo1UMZdqQ+w/5n oV9UdxQkMfSuig6y6JzZ48fODziMffRGAG0/XliymuVU04ZpVhkFiNqnxykMm7osXyUN FfKZa5iEMsvOMAJYDYjIS9G2webA+W+7O33LWm5fYQKwUDp/J2m/eeH+s0/RRJ7Zd9Yw uPpQ== X-Gm-Message-State: AA+aEWb/eSz60UelUvPekNazFjjeCpxx1T2gJbZ6uY6Wv5tMm8xboJdx MqxbkcbVOz0i6OHbBFQ/tDiNdq6Z X-Google-Smtp-Source: AFSGD/X+Rn2znS0cvjfHVaq8+QaDB9oGaW4kXxfnfSOB1bCIFLlWw1i274EDS6U8RZVAbwR9Whimrg== X-Received: by 2002:a1c:cf82:: with SMTP id f124mr6921960wmg.95.1544628236494; Wed, 12 Dec 2018 07:23:56 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 12 Dec 2018 16:22:57 +0100 Message-Id: <1544628195-37728-37-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> References: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 Subject: [Qemu-devel] [PULL 36/54] tcg/tcg.h: Remove GCC check for tcg_debug_assert() macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth 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" From: Thomas Huth Both GCC v4.8 and Clang v3.4 support (our minimum versions) support __builtin_unreachable(), so we can remove the version check here now. Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth Message-Id: <1543937577-28256-5-git-send-email-thuth@redhat.com> --- tcg/tcg.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tcg/tcg.h b/tcg/tcg.h index cbe4309..973a757 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -230,11 +230,9 @@ typedef uint64_t tcg_insn_unit; =20 #if defined CONFIG_DEBUG_TCG || defined QEMU_STATIC_ANALYSIS # define tcg_debug_assert(X) do { assert(X); } while (0) -#elif QEMU_GNUC_PREREQ(4, 5) +#else # define tcg_debug_assert(X) \ do { if (!(X)) { __builtin_unreachable(); } } while (0) -#else -# define tcg_debug_assert(X) do { (void)(X); } while (0) #endif =20 typedef struct TCGRelocation { --=20 1.8.3.1