Message ID | 20180909235327.26252-3-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show
Return-Path: <linux-sparse-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED93F14E2 for <patchwork-linux-sparse@patchwork.kernel.org>; Mon, 10 Sep 2018 02:53:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9AAB28CC3 for <patchwork-linux-sparse@patchwork.kernel.org>; Mon, 10 Sep 2018 02:53:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE1AC28D0C; Mon, 10 Sep 2018 02:53:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FDD428CC3 for <patchwork-linux-sparse@patchwork.kernel.org>; Mon, 10 Sep 2018 02:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725960AbeIJHpW (ORCPT <rfc822;patchwork-linux-sparse@patchwork.kernel.org>); Mon, 10 Sep 2018 03:45:22 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33860 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbeIJHpW (ORCPT <rfc822;linux-sparse@vger.kernel.org>); Mon, 10 Sep 2018 03:45:22 -0400 Received: by mail-wm0-f68.google.com with SMTP id j25-v6so4219441wmc.1 for <linux-sparse@vger.kernel.org>; Sun, 09 Sep 2018 19:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u4824QY+X1fcmoLgY50BwR9ljy4D+tdLpVmBmWWfa4w=; b=kLCnlWa+y+zj6ucYk5a8qRYOWcetbZIOOoGTIIlY/nhYi//l9578yeAj7dvdV+InUT g0iDCRrA2etkZH9Spy9HKt6kQsmdKq6V0X570mTMQUX8LtSnHt75V13qQAjDoSsaWiVJ xh/gbgjlQal4DZw+6bHuQxcHpcRc6EVQIMHmXQ5sZYeOC0OZgSvTNmys+cmll+95dgBF H7o875Owv9dQydYGyi/I5zINwlfx2xe/VxMW6tZgJO1Y3lT3R5ITk9TQVYIxjll27QrK o9vyDQ+PUtum2wdikMemzg8cD9zp50ghkbwPqHBLLJXW5dCsGYkigWPhLgZ20LbYUgR5 KYJw== 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=u4824QY+X1fcmoLgY50BwR9ljy4D+tdLpVmBmWWfa4w=; b=sgwXvzkPyJHtFM6on715OlUsQi68GrIcEERxJvlcGz99INtSxeF+111LpvHtsLoETe 2tvouFgbiu1hxn+9dIkeWd22ixK8oh2vd9t1Q8sc80qoCl+8aVUJLh48Jaezxn+Ip2Nv OG1iFgMXiaet4IksjPuJcOHMAEQux5o/mrBfSpRuPbvMGp57yeaymf/fGbsiJu24CAoD E1wOSM9pvgA3GxFgoKzvTkM41qu9aWfWADOR/Vl9LraJhR0Yfg1PB12ydU+FxUOMNFi1 riodr4JJrqdUFo6IsuR+Zca5WAeghOeGwedW4CZy6iWmJqRlSXstaXoaP+9BEmxffuka vlvw== X-Gm-Message-State: APzg51BcyFzZDGf8P1lAwwX8OQD7bD5IHlZPVgNNqsaaeJyBzQzctM3C 2rVPeXunQXekuWQTpNXEfcFJeSkk X-Google-Smtp-Source: ANB0VdaqQyJepR4Pwnq3F2I12uRSv8mzmn6bsmd4kOzf+rqfiZ5Nh2QgXxVl7tqf7duBqdXbqsTXoA== X-Received: by 2002:a1c:9808:: with SMTP id a8-v6mr10209636wme.62.1536537331848; Sun, 09 Sep 2018 16:55:31 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:4006:df00:5977:db62:b6c9:6a45]) by smtp.gmail.com with ESMTPSA id n11-v6sm15121516wra.26.2018.09.09.16.55.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Sep 2018 16:55:31 -0700 (PDT) From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> To: linux-sparse@vger.kernel.org Cc: Ramsay Jones <ramsay@ramsayjones.plus.com>, Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Subject: [PATCH 2/4] test: use integers of different sizes, even on 32-bit Date: Mon, 10 Sep 2018 01:53:25 +0200 Message-Id: <20180909235327.26252-3-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180909235327.26252-1-luc.vanoostenryck@gmail.com> References: <20180909235327.26252-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: <linux-sparse.vger.kernel.org> X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
fix testsuite on 32-bit
|
expand
|
diff --git a/validation/optim/cse-size.c b/validation/optim/cse-size.c index e98c3cde7..5b31420c8 100644 --- a/validation/optim/cse-size.c +++ b/validation/optim/cse-size.c @@ -1,7 +1,7 @@ static void foo(void) { - unsigned p = 0; - long x; + unsigned short p = 0; + int x; for (;;) if (p)
The test optim/cse-size fials on 32-bit because it needs two integers of different size but uses int & long. These two types have indeed different sizes on 64-bit (LP64) but not on 32-bit (ILP32). Fix this by using short & int. Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- validation/optim/cse-size.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)