From patchwork Mon Dec 19 14:07:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 34557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2408715wrn; Mon, 19 Dec 2022 06:08:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXuXWXPtJha9995LoaoZCKYGjsgLu0lfiaK0WcowMEzEiObKzm8bxaCmz3dYk6CpRtAUTTVC X-Received: by 2002:a05:6402:35d4:b0:47b:20c:eea0 with SMTP id z20-20020a05640235d400b0047b020ceea0mr2399941edc.23.1671458931493; Mon, 19 Dec 2022 06:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671458931; cv=none; d=google.com; s=arc-20160816; b=uEzE040QGFQgdkKOOtrSn7PwT/vhxa43Fx9CTy/oyBtQ1vtTq6iJoDQSD/wwEM06x0 2Xw7jrLC1rropD+bXLHx6zdcKHHLqBTz2aUppIjGjcno0c6tJEaQBfh5FR4GzwRfvWms dAL/jsYJULVVVANn3J3xu6EZ+HZB0ZMuaU+fXp1W9cCrx9ZBTW+ytu0iCgQluuZAZu/r cuGxjwT4hP6FO5eugcyitVMOp/hd/0LBanRVjCYoinkAj86G8YsE0NCVkm0zfYts8V5n yt5F6TmdI1xIy8sipDUsUh6jbKGe4yBH/Av1ea6+pfYZj4rGMZteRzBHc9unPmhw7oVJ 7diw== 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 :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=P2iNlhzDS+oEwvArEuWEnASrTPb0+OCgXYooymbJ03Q=; b=hhwSZqG5nBCQYGf789hIxaZ9MZM7NrdLTMsXRHi52qhN3+JXJpKTpHVo2y0UV1/mfy 1NM6/bzu6Q4D5wTiMlN+MkqOTcBdpkGEZUkEpwyH9Sl9ybv+UGF0KyX6kuw4LS8oQ8ev ESM73XxqAz3jVbow+Zn+30G1DMhPLUBbv3kj5wQuLgHFgLpo6bengBRQQPsefp25EBCU vaaysvbEBHAk+f+qFXpkdO8HFsiNaWh2jbPWejkk6SmpQeHcBHhS3KttoRvCvdZC4z2N fA4hyHHe6nl0dHFuWXEr3AguI4s89na1YKKue92dbRjFHQicP74GrftsKOTXnE0y/SUj VJ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NkrzJgpD; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v2-20020a056402348200b00459f9c3d02bsi9929283edc.22.2022.12.19.06.08.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 06:08:51 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NkrzJgpD; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 15B0A3858439 for ; Mon, 19 Dec 2022 14:08:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15B0A3858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671458918; bh=P2iNlhzDS+oEwvArEuWEnASrTPb0+OCgXYooymbJ03Q=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=NkrzJgpDNIebTiZFu11o0xJsP81KgtpQmfdrxs7GyX6xfNG54LluQKwrKiHIFnuKa EoGbfxEsR3E9IeP/eS1de71KPKjkYMp9yF5/f2Bu6uu9FyTeE0r9bFepDNDJTopaWk On1o2oELdgu79DGMC2eFQEtQj1byzbnMMM35H6vw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A7B333858D32 for ; Mon, 19 Dec 2022 14:07:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A7B333858D32 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-157-qbDLIwDwMbuzdeocQoIzlg-1; Mon, 19 Dec 2022 09:07:49 -0500 X-MC-Unique: qbDLIwDwMbuzdeocQoIzlg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0A79F183B3F5 for ; Mon, 19 Dec 2022 14:07:49 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.195.114]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B9DBF40C2008 for ; Mon, 19 Dec 2022 14:07:48 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 2BJE7k9U778994 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 19 Dec 2022 15:07:46 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 2BJE7juf778993 for gcc-patches@gcc.gnu.org; Mon, 19 Dec 2022 15:07:45 +0100 Date: Mon, 19 Dec 2022 15:07:45 +0100 To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up pr64536.c for LLP64 targets [PR108151] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, 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: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek 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?1752647056255193775?= X-GMAIL-MSGID: =?utf-8?q?1752651720725119904?= Hi! Apparently llp64 had 2 further warnings, fixed thusly. Committed as obvious after testing it with cross to mingw. 2022-12-19 Jakub Jelinek PR testsuite/108151 * gcc.dg/pr64536.c (bar): Cast long to __INTPTR_TYPE__ before casting to long *. Jakub --- gcc/testsuite/gcc.dg/pr64536.c.jj +++ gcc/testsuite/gcc.dg/pr64536.c @@ -40,7 +40,7 @@ bar (int x) h->q = *f; } else - i = (long *) (h->q = *f); + i = (long *) (__INTPTR_TYPE__) (h->q = *f); *c++ = (__INTPTR_TYPE__) f; e += 6; } @@ -54,7 +54,7 @@ bar (int x) h->q = *f; } else - i = (long *) (h->q = *f); + i = (long *) (__INTPTR_TYPE__) (h->q = *f); *c++ = (__INTPTR_TYPE__) f; e += 6; }