From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qf81H4ASF2C2cAAAWB0awg (envelope-from ) for ; Sun, 31 Jan 2021 15:26:40 -0500 Received: by simark.ca (Postfix, from userid 112) id 722B11EF80; Sun, 31 Jan 2021 15:26:40 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 27B181E945 for ; Sun, 31 Jan 2021 15:26:40 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0119385701F; Sun, 31 Jan 2021 20:26:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0119385701F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612124799; bh=MQa+hmO6T9oVvQ1tGyeJzO3HJUiSQF1k5GnfPjjFA6o=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sZCiT3e9mWvH484oUUuAGVYlGH/L44/Y9XW14qJLG21DBolUMEPCYSTJ7DO3pCrUB dAKESioqOI2HpmcjkXNnJgsR/MFU0pPxEo1HOrrMqzTlkWHs9m6vgaNRmoRYzAKfsB Ez+ftWzAxrfOhjI59S8k8Rk/TD2WPmWNXtlrGkjk= Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 0BA29385701F for ; Sun, 31 Jan 2021 20:26:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0BA29385701F Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E3B6133BEA6; Sun, 31 Jan 2021 20:26:35 +0000 (UTC) Date: Sun, 31 Jan 2021 15:26:35 -0500 To: Stafford Horne Subject: Re: [PATCH] sim: common: Fix pointer sign warnings Message-ID: Mail-Followup-To: Stafford Horne , GDB patches References: <20171003154437.11329-1-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171003154437.11329-1-shorne@gmail.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: GDB patches Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 04 Oct 2017 00:44, Stafford Horne wrote: > When compiling we get the following warnings: > > common/cgen-accfp.c: In function ‘fixsfsi’: > common/cgen-accfp.c:370:18: warning: pointer targets in passing argument 1 of ‘sim_fpu_to32i’ differ in signedness [-Wpointer-sign] > sim_fpu_to32i (&res, &op1, sim_fpu_round_near); > ^ > common/cgen-accfp.c: In function ‘fixdfsi’: > common/cgen-accfp.c:381:18: warning: pointer targets in passing argument 1 of ‘sim_fpu_to32i’ differ in signedness [-Wpointer-sign] > sim_fpu_to32i (&res, &op1, sim_fpu_round_near); > ^ thanks for the fix, i've pushed it now. there's one more too exactly like this: fixdfdi (CGEN_FPU* fpu, int how UNUSED, DF x) { sim_fpu op1; - unsigned64 res; + signed64 res; sim_fpu_64to (&op1, x); sim_fpu_to64i (&res, &op1, sim_fpu_round_near); -mike