From patchwork Thu Jun 4 03:45:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 187456 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp1072449ilo; Wed, 3 Jun 2020 20:45:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxigZcyJ9D73D+BAHAN//xsVoXeO/xzcxiAWPlxgnVT0d9tJWKiTxiMTACHmeiECCgXva4O X-Received: by 2002:a25:af02:: with SMTP id a2mr4829717ybh.225.1591242356197; Wed, 03 Jun 2020 20:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591242356; cv=none; d=google.com; s=arc-20160816; b=P9R2dItKERInMVK5TeHDB/8lfmdH77Khbb8zvdz53DmPlZ9008QN5zEZMyy4XM/Gah yj0ctWclOxr6Rfyx3VxXYj2M41CmrsvoandgTWcx8r9YeOeG9Q8PjJ01Ritwes1//UYB Eg9QvCcYP7evgJq4uPMmLopALArCiS/f1AMi6I2w7yvg5BOWzmSNjgtxACIiwX3ypg8a uABiA0pE04eWr1cgZqsMWZHS+FFNsgvh89dPoOTP58viLRPajy6EF5e2KpW5+S1AaDsq JbEHmiJiDElVh9CbKNLqeQn26wrHYnBCMk9r/GJvL+JYk2WJrV1WdsOdqtiuBID3fNIj qmLA== 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:message-id:date:subject:to:from:dkim-signature; bh=48Nkai7QMgm5/xgRcH8NnoLnhaSYi6y1dsmgIS3rtNE=; b=0DIrasRm8NvjjOst4sgDN8Pj6hQzcY4EdNTsv65XuL+xSMvT2cnK29FC64hXpnuIX5 cELQzkk9IYZWfknpAVGso/BL9TesLv+EpY0JJaSAD1j/H3+QlD9a58dNesQ5ng5hRSfE doZwwsmDrZ9StxfnFhhTzKl7B8XFFnLYPHrVX7x1dl6D6ipvpHcMYsFrchWJzNbADfKl kMlXNLFOyCyUmBJfpFn735e5UAy7fKR8p7zGCqb9VSuYp7BdU3HrWIa9sxIvrJam3XEp D5n1I6vR+4VGqowvt732Uls4kF6IM2XsKOWVyfWa9NWm9moKwdaSnfICIGtH5R2pEJML ZhkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="tidE/WKW"; 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 v16si3205155ybe.324.2020.06.03.20.45.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jun 2020 20:45:56 -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="tidE/WKW"; 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]:42900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jggpH-0006QJ-Nj for patch@linaro.org; Wed, 03 Jun 2020 23:45:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jggoi-0006Q7-8h for qemu-devel@nongnu.org; Wed, 03 Jun 2020 23:45:20 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:45607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jggof-0006BN-CP for qemu-devel@nongnu.org; Wed, 03 Jun 2020 23:45:19 -0400 Received: by mail-pg1-x544.google.com with SMTP id n23so2896799pgb.12 for ; Wed, 03 Jun 2020 20:45:16 -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:mime-version :content-transfer-encoding; bh=48Nkai7QMgm5/xgRcH8NnoLnhaSYi6y1dsmgIS3rtNE=; b=tidE/WKWWfdPw8vK5onzay1Ndvv8EU/4damO6kGYKVi7UohY7acKMnFsu9IP7mPn4E 9HAAdlEMFbSzOJmE/M+/youR95y5tD+Y/5dKMB15GZMoK7KgChLIfsc/5XlU5JYYvd6v 2m5JobX1bP5V6N5euMr2Pk13sersrdloOJP5NzKe8LGYLjLIP9XforlAMfy6nA5vvXtB GBBSyWtYJEBDU7jzHBB8vmFGVQ3v27fWLS6K8IpAyHTUj09i9zQ4R+ygAilXcjs8kpuJ W1S23Kb6jnBf78fGRcR5g0PclOVAhmw1l0fBV2AgLVwDem+zBKNPYf8YUSd/Q20RqJsH /50A== 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:mime-version :content-transfer-encoding; bh=48Nkai7QMgm5/xgRcH8NnoLnhaSYi6y1dsmgIS3rtNE=; b=DVFDbVUhD9E0dAKs6WwPhRKfOwxhhFCfa1rGDD55ch1GrGOHQWCUSHpnEEo/jJwrcb Ok6Sd+q8TYOLlMEcE/huY2PJ5g4vqk8eTnMzd6vHbniDsnNRKTAEX6u72XqhL4M224po 1XsAumxk4amVw0aVKz3vxOiP52ZWGnXF95/62UA/yyuM8QuCObOCqsbEk4Qvy3Ii08iI IOW89h5EIGXjxDuV9w6817EL2RFurEHrzneIPksQmHY7yGYhC4JLOjaEK/Zz3c9oDYRz hNFPJ7kHkLKyLHmAatLfbhl7iX7KjGg5mouhPH1ZwkRalu/JHMpfTnswr5jXaJyryRNe 03gw== X-Gm-Message-State: AOAM53389ouFbDMVR6b1oIxaLkrlWbrrwIVsU1KPFH4kKXnYsAc4yo8r mAr2/gNkZ0diXM63t90X5ye6PBRPZ/E= X-Received: by 2002:aa7:8d8a:: with SMTP id i10mr2234912pfr.193.1591242315345; Wed, 03 Jun 2020 20:45:15 -0700 (PDT) Received: from f32.twiddle.net (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id z11sm3131220pfk.141.2020.06.03.20.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 20:45:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH] configure: Disable -Wtautological-type-limit-compare Date: Wed, 3 Jun 2020 20:45:13 -0700 Message-Id: <20200604034513.75103-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x544.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: thuth@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Clang 10 enables this by default with -Wtype-limit. All of the instances flagged by this Werror so far have been cases in which we really do want the compiler to optimize away the test completely. Disabling the warning will avoid having to add ifdefs to work around this. Signed-off-by: Richard Henderson --- configure | 2 ++ 1 file changed, 2 insertions(+) -- 2.26.2 Acked-by: Thomas Huth Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Eric Blake Reviewed-by: Alex Bennée Tested-by: Alex Bennée diff --git a/configure b/configure index f087d2bcd1..693f01327f 100755 --- a/configure +++ b/configure @@ -2009,6 +2009,8 @@ gcc_flags="-Wno-missing-include-dirs -Wempty-body -Wnested-externs $gcc_flags" gcc_flags="-Wendif-labels -Wno-shift-negative-value $gcc_flags" gcc_flags="-Wno-initializer-overrides -Wexpansion-to-defined $gcc_flags" gcc_flags="-Wno-string-plus-int -Wno-typedef-redefinition $gcc_flags" +gcc_flags="$gcc_flags -Wno-tautological-type-limit-compare" + # Note that we do not add -Werror to gcc_flags here, because that would # enable it for all configure tests. If a configure test failed due # to -Werror this would just silently disable some features,