From nobody Fri Dec 19 19:23:29 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500563635779745.2899650496283; Thu, 20 Jul 2017 08:13:55 -0700 (PDT) Received: from localhost ([::1]:38478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYD4p-0007xO-Km for importer@patchew.org; Thu, 20 Jul 2017 11:09:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYD0I-0004G4-5W for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYD0H-0007ms-5q for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:04:38 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:34766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYD0G-0007ky-WD for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:04:37 -0400 Received: by mail-wr0-x231.google.com with SMTP id 12so72092107wrb.1 for ; Thu, 20 Jul 2017 08:04:36 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b80sm2711527wmf.10.2017.07.20.08.04.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 08:04:33 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D2F6D3E04F1; Thu, 20 Jul 2017 16:04:32 +0100 (BST) 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=Ccr8EQdnNfCesb8xiulgZhA3zMCySz8FlRKyoGnAheI=; b=V2eLPx6gwjhxxHjEMo//8wjxCWGYCFpWEpfk3LkZ2B+7g8mYXnUkqFkLsRLELkWEuP bTm0QMrbO4VtGKD8fCyFnODWcEP6iMFN9XEILtmr1OAGigiZFQLKJEByOGBbaOQQm32t ONxABsVIaBu+rGtZpvxMUkCiBWWG2+8I4qS5I= 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=Ccr8EQdnNfCesb8xiulgZhA3zMCySz8FlRKyoGnAheI=; b=ckfZD8mJSc4RjwVBXAzuEuzNBMLyXbQzcjogDAf6ME858RFaHFoaUOH4LyIFJXBLHz PS+kX+hT2vuYq5lFeK53pcAltLKHtF2vEqPTLeJspnnFQ4c7y/wyXCgtOIQsVqCB1N9i 0WjaGrXFBfgRk36o7GWQaQcqehK2VJi18na8g7t9KMMNuHeslg6unc9d7/iB3RtgESWJ F2ip7zuyRoBNqUN1WZBz91G99SE8oBBW8T4is2CcrcI9TDqA8qKgmWdc4iJZczIa7Ddl 8LdNgz3PP2EAqUv5SVFUBEVtyUS1HLeuzSI8qBdtGgTBEGRO2QvTBU/DxvY29A1lZMrL 8W4Q== X-Gm-Message-State: AIVw113yrN+yazW8zcQprIucaCCI4bpwwB1FoRE8IHrpEG/WOpaLZkrk Qm/qE2kAubCuGhNk X-Received: by 10.223.179.27 with SMTP id j27mr1663019wrd.190.1500563075914; Thu, 20 Jul 2017 08:04:35 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 20 Jul 2017 16:04:09 +0100 Message-Id: <20170720150426.12393-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170720150426.12393-1-alex.bennee@linaro.org> References: <20170720150426.12393-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 Subject: [Qemu-devel] [RFC PATCH for 2.11 06/23] softfloat3c: silence compiler warning 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: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Aurelien Jarno , rth@twiddle.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 While you could pass a 0 size_words to the function it would be a bug. At least by ensuring the leg is followed it stops the compiler complaining about a potential uninitialised access. Signed-off-by: Alex Benn=C3=A9e --- fpu/softfloat3c/s_shiftRightJamM.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat3c/s_shiftRightJamM.c b/fpu/softfloat3c/s_shiftRi= ghtJamM.c index 47ba5ddaf9..035d5d3c1f 100644 --- a/fpu/softfloat3c/s_shiftRightJamM.c +++ b/fpu/softfloat3c/s_shiftRightJamM.c @@ -66,7 +66,7 @@ void } while ( i ); ptr =3D zPtr; } - if ( wordDist < size_words ) { + if ( wordDist <=3D size_words ) { aPtr +=3D indexMultiwordHiBut( size_words, wordDist ); innerDist =3D dist & 31; if ( innerDist ) { --=20 2.13.0