From patchwork Thu Apr 25 17:26:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 162856 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2216582jan; Thu, 25 Apr 2019 10:29:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/qUX5FHnb+YK4dUPlgw4D6gYLZ++2Xo7kW/M6JM2Oozjo9OZJ+Vd51hBX7prk6CSPWfEV X-Received: by 2002:adf:eb4c:: with SMTP id u12mr21561208wrn.235.1556213391724; Thu, 25 Apr 2019 10:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556213391; cv=none; d=google.com; s=arc-20160816; b=dpXzCMUkehcUIHaMcMUQ50yPvnCuL4iFSCcoWdMxTBdlJdFTi3xOBxhAuZz2fJ5tE/ zpQXbvIxYUrIwiPcypw8xx2NvoVTagVL8vr7Uafy2GaUa0xPCM6v0LGexX9K5oScu5gN oKB4FwtuIdV9gpdjccjDVfSwW3oAAXrr7Zbnv84YCZSP76iYZMpWvIxlBJU0v5b3/ULI VUK6dRDEXYdad+xY9MAhon8eLTH5V+9YyJiOnN6dst+qiYrd+uDzoyrCS/MHLrlokYQi UPoTKXjNZnNem3kPHTsN0KOyqVUy70jc+UiXKD7dN8xLBOrjpSUlsqVde2b2jBGmCFAT 4fKg== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=7gtIWTRNKd5zdzhWtV9mqmxBLudIq3sczpVqqkNj2e0=; b=BOBGy/IhHW4r66KDdDVMlanAFtx7zFadfohThi+eRKteP71NJ6Ut8sWFlPBk8i4WRo O7pwVj72vbjOLuCvdqmS/mM8LEDZBE4Fz5cQFZu3309D5izJadkBGJm2QN90gXAnlQxV GGI4iqFh0SJ76x7+FUhHBNDNw6SvWpOxDToSU9GYN7ZbOgIy2k3rcuWNRLiNpV89JX47 Tbs9YMfzKhpcpvp/dMcyJmeBvhPeFLdYc43hcFc6GvnZVL6+EteGJonJpvgEzB6mQXzb 0AMM8OFvF9rWJUtfmk6rKfwIiUweqId2O3gS0dj3DVClC2TqQbD4WZX+A6Ok+UIS858y yS3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kvlvXYnm; 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 o82si15777959wmo.101.2019.04.25.10.29.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 25 Apr 2019 10:29:51 -0700 (PDT) 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=kvlvXYnm; 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 ([127.0.0.1]:32950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJiBy-0000M6-N7 for patch@linaro.org; Thu, 25 Apr 2019 13:29:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJi8w-0006e2-BN for qemu-devel@nongnu.org; Thu, 25 Apr 2019 13:26:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJi8v-00039q-Cq for qemu-devel@nongnu.org; Thu, 25 Apr 2019 13:26:42 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:41183) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJi8v-00039K-7J for qemu-devel@nongnu.org; Thu, 25 Apr 2019 13:26:41 -0400 Received: by mail-pg1-x52a.google.com with SMTP id f6so173692pgs.8 for ; Thu, 25 Apr 2019 10:26:40 -0700 (PDT) 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; bh=7gtIWTRNKd5zdzhWtV9mqmxBLudIq3sczpVqqkNj2e0=; b=kvlvXYnm5Zatb2Wu09W1wEgCY/3egzEykwWc2CyOkI/MpU8CJG26RDrltOSW/qvvhX y6eUX0MbaYhfq6BQnQlaIYFXP/Eu6LJDDqvGMHaiBDe04o5nQx8mB4urEBVITQYVTwo5 o8oO207W793JyfN4xB0oWmwFPYV33EYHbQ9b5S6YHbh1Ro5Wmxf2K+chPf447Zs0K4bl WIYbYEBtViSWSKVNl7rrmOKuaIFxfOsF57kLY/+6tpZ0tZi4nnYuPBhQg/VvoM4pgEPr g4gnzi/f6TWoF85oImigl2wIVdrKxsJ0YqVtmPGZ+QIL2TYWj5svkwtBq5144bHRjkFl wY2w== 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; bh=7gtIWTRNKd5zdzhWtV9mqmxBLudIq3sczpVqqkNj2e0=; b=M1VPM7g2MofzwHEm2ZCQbo/tiijrzFlQuKFtD1DNJ6sYT0BmZvt8uJ+TlFLJWFqroP iSJ/aJAp1L3wylx4Chm6yAflZLFHw9qsmnqKanN2XTeiA7cQ95Kb8swvs0xp9gt3LdYx Dw8En0i5+FzjGNYEOxmkW/+otmgQuLMy4ZWh/yyQHvVSdnUw1Bg1I8zWdg+4aTlKo5rt fylUOLQD6/wPhI1+OTFR5uSlOmUy1nNQL/bRH722AO2gz17NSrpVivxYDDBvqlEd6lzr P1cZd9zAF4NlgFDHK1t5bpdJTEpjOg0yQZbopGBn1NdjFMSGCs2qKZjcARvM3WOlpk7W MDfA== X-Gm-Message-State: APjAAAXL067ibHZiAIF9d8sVo9RkjgAw42LmdjApCEiBfvSdXxHykhrv J06aFjnmnHSfja0aShuXQFg06fG9ADA= X-Received: by 2002:a63:e818:: with SMTP id s24mr38894439pgh.190.1556213199171; Thu, 25 Apr 2019 10:26:39 -0700 (PDT) Received: from localhost.localdomain (97-113-179-147.tukw.qwest.net. [97.113.179.147]) by smtp.gmail.com with ESMTPSA id 128sm26439908pgb.47.2019.04.25.10.26.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 10:26:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 25 Apr 2019 10:26:35 -0700 Message-Id: <20190425172636.11128-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190425172636.11128-1-richard.henderson@linaro.org> References: <20190425172636.11128-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52a Subject: [Qemu-devel] [PATCH 1/2] fixup! target/riscv: Name the argument sets for all of insn32 formats 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: palmer@sifive.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" --- target/riscv/translate.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Alistair Francis diff --git a/target/riscv/translate.c b/target/riscv/translate.c index d1f599a92d..009c146e8f 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -713,12 +713,19 @@ static bool gen_shift(DisasContext *ctx, arg_r *a, * initially declared by the 32-bit decoder, which results in duplicate * declaration warnings. Suppress them. */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wredundant-decls" +#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wredundant-decls" +# ifdef __clang__ +# pragma GCC diagnostic ignored "-Wtypedef-redefinition" +# endif +#endif #include "decode_insn16.inc.c" -#pragma GCC diagnostic pop +#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE +# pragma GCC diagnostic pop +#endif static void decode_opc(DisasContext *ctx) {