From patchwork Sat Jan 28 18:16:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Yong <10walls@gmail.com> X-Patchwork-Id: 49895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1451272wrn; Sat, 28 Jan 2023 10:17:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDSzAOYMEqehz14iBvEVryCC08F1TMr4F61oWug2aN3LDNdTuasDvaowaNNNi65O5w50IP X-Received: by 2002:a17:907:6745:b0:86c:f7ac:71f7 with SMTP id qm5-20020a170907674500b0086cf7ac71f7mr49205877ejc.8.1674929848856; Sat, 28 Jan 2023 10:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674929848; cv=none; d=google.com; s=arc-20160816; b=RMH9vcj+nAHQvwGccQDzxp/ZI52qKDv9XToyZRCBLNkhaoAO5m+9TBppkgba2LaDfA t+wrn3dS2vAcEA/uu8olEr09aGmbX1LMDGtLq1dwbh8AqPUKA06bfCA9SmzMFudskJyc 9oeXRzg6ipnVXK+OwtObfyI3DLqWYxIpSdI5m31YynFN02jVSmAuK6F1We5nqqTgjh3w dYVxjy/6Hbr3xKxH5MmJDdgkRLKDZPWhHM+Al32QCMFeLeuRSSidOoaE1VhJ4+WeUSmf COosqzvTa7CJ72+4IFtxO16b08Nxfu9DXDmG+MlzbCO2UhBMzlKG2ciKJ6QVu/m+Ab5I nkvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:cc:to :content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=n6vplPdNT6BLVEjD9NvOrVJafnjwOQHONEiD7OmmS/c=; b=PNCpxjxNun+sd3GkNOCVzOIIfry/NZJQyx/4vnxWno7Itul9N5cpi0KUbq4lv6qhFG VM1r9VTPYRdS9IC1zgondUUwEkzaiNvCC8xFwSnS47ozN+Hd7n7H0xL00OOF2tme4ohk GX4F8HoGtj++BMvo79FnBwXWRE+2o5kiKo6wRJ2qyf9vTDJCo+n6slAPb7GMGopVbJny Z2f1y9j/R2EcjPh1F/DXFc8oa7M3ofgz4SPbjlL8xdtE9kqqZ1j+0Ac7sTBDs84WzwOe Iu994Bon2hTTNPZ0Dq844ZY98jtQatWVhm9xoncOZyhigIJG8B/UYU0bef7tOAUW8/d9 Sqvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=E2q8XYam; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u14-20020a170906108e00b0086d67b0615esi9827544eju.242.2023.01.28.10.17.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 10:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=E2q8XYam; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AE1943858C5F for ; Sat, 28 Jan 2023 18:17:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE1943858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674929847; bh=n6vplPdNT6BLVEjD9NvOrVJafnjwOQHONEiD7OmmS/c=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=E2q8XYamIkbg+F5EUSjE5bP6NaKbFngsmwlWIUXOrMnTlcQrAsq2yxxQdYIT6F4+a gSB/B4SmLYDQufRHhUot/5gPsgebQhCQtEyVTkyBa+tQ1VQIvDMXGp6kdAAVY5uQg+ 09wVHuRRw8PIEMd3n/no+BX5TaDEeJ69N+op1UdA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id E35383858D20 for ; Sat, 28 Jan 2023 18:16:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E35383858D20 Received: by mail-pj1-x1030.google.com with SMTP id rm7-20020a17090b3ec700b0022c05558d22so7584051pjb.5 for ; Sat, 28 Jan 2023 10:16:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n6vplPdNT6BLVEjD9NvOrVJafnjwOQHONEiD7OmmS/c=; b=mf48xp27DgqFbibXc7vLOr1xjyXyj2yQn71yRbqJEozjd3eU4k44KxSEZnFzy2yL4C RUAYD2y0x27gFBkP1tImBMxBLbh+IY5CsZPFbv2kHJkyx3W76aTU1zhrAyuP0IXCmlja PL3qxg/StqFgsl+6Bbz2JIp3cgFn3EsTGZa7kBAbvGpBWc6hSLs1g+WhfXuwUmU3TqoP OpZVKeCWgr2BYEhoZ6OBQjfbQSd4GFo/3ng8JdlwZbXh5u3Js4VG38ZAq/hbvSeG43NW NgBrWTyBs6wv+IlX/uHBP5eEImU/ZLSu5kkrY6qGb6F82uhhe8J964JtqCQtLohlXKJB O7zw== X-Gm-Message-State: AO0yUKVp8ohTrLJE2K2kfc9eacdKO5jp2ekfSAfxMRvEoS/QnQ+kn+mG PRKDfiWy0KFforloB5X/s46X0bpPe+k= X-Received: by 2002:a17:903:32c5:b0:192:6990:ba60 with SMTP id i5-20020a17090332c500b001926990ba60mr2422006plr.63.1674929803786; Sat, 28 Jan 2023 10:16:43 -0800 (PST) Received: from ?IPV6:2001:f40:91b::31ee? ([2001:f40:91b::31ee]) by smtp.gmail.com with ESMTPSA id d15-20020a170902728f00b0019602b2c00csm4771818pll.175.2023.01.28.10.16.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Jan 2023 10:16:43 -0800 (PST) Message-ID: Date: Sat, 28 Jan 2023 18:16:40 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: Gcc Patch List Cc: NightStrike Subject: [Patch] pr65658.c: fix excess warnings on LLP64 targets X-Spam-Status: No, score=-3038.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Yong via Gcc-patches From: Jonathan Yong <10walls@gmail.com> Reply-To: Jonathan Yong <10walls@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756291241662348604?= X-GMAIL-MSGID: =?utf-8?q?1756291241662348604?= Patch OK? gcc/testsuite/ChangeLog: * gcc.dg/pr65658.c: fix LLP64 test. From bd2634e2795723f290dcf4bbb06e70fb6ca6af51 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Sat, 28 Jan 2023 18:12:50 +0000 Subject: [PATCH] pr65658.c: fix excess warnings on LLP64 targets gcc/testsuite/ChangeLog: * gcc.dg/pr65658.c: fix LLP64 test. Signed-off-by: Jonathan Yong <10walls@gmail.com> --- gcc/testsuite/gcc.dg/pr65658.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/gcc.dg/pr65658.c b/gcc/testsuite/gcc.dg/pr65658.c index bb5c37adbe3..4847dc2d5c7 100644 --- a/gcc/testsuite/gcc.dg/pr65658.c +++ b/gcc/testsuite/gcc.dg/pr65658.c @@ -16,10 +16,10 @@ struct undeffoo }; struct problem { - unsigned long l1; - unsigned long l2; - unsigned long l3; - unsigned long l4; + __UINTPTR_TYPE__ l1; + __UINTPTR_TYPE__ l2; + __UINTPTR_TYPE__ l3; + __UINTPTR_TYPE__ l4; }; static unsigned int undef1, undef2, undef3, undef4, undef5, undef6; static void *undefvp1; @@ -37,7 +37,7 @@ undefinit1 (void) } static int -undefinit2 (void *problemp, unsigned long problem) +undefinit2 (void *problemp, __UINTPTR_TYPE__ problem) { int ret, u; if (undefinit1 ()) @@ -60,7 +60,7 @@ fn6 (struct undefinfo *uip, struct problem *problem) unsigned long amt; if (external_function3 (((void *) 0), ((void *) 0), &amt, 0, 0)) return 1; - problem->l1 = (unsigned long) undefvp1; + problem->l1 = (__UINTPTR_TYPE__) undefvp1; problem->l4 = uip->l1; problem->l3 = uip->l2; return 0; -- 2.39.1