From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.devel Subject: Casts to pointer from integer of different size? Date: Tue, 06 Jul 2021 15:37:33 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-hNdVfAYKFtVqiaFRKGy6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36776"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jul 06 15:38:29 2021 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0lHQ-0009Nj-VJ for guile-devel@m.gmane-mx.org; Tue, 06 Jul 2021 15:38:29 +0200 Original-Received: from localhost ([::1]:45732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0lHP-0001B3-Rx for guile-devel@m.gmane-mx.org; Tue, 06 Jul 2021 09:38:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0lGo-0000co-3W for guile-devel@gnu.org; Tue, 06 Jul 2021 09:37:50 -0400 Original-Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:37090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0lGl-0000e2-7a for guile-devel@gnu.org; Tue, 06 Jul 2021 09:37:49 -0400 Original-Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id Rpdj2500n0mfAB401pdjy1; Tue, 06 Jul 2021 15:37:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1625578664; bh=YO2DWQQ2inT9fLtuKExhWac1oEQavDZwvMYyb8UifD0=; h=Subject:From:To:Cc:Date; b=YK9ILLDNWrQdShmXwga7lmg/RlGqECGcgEn+0BKie4O+lqKZeI1e04TJc2ydUsJ2/ AOuecvEk5sFXD8YeanTp8ACW/GtJX4WfzSLPPzdtfEeIaRCBBl/wEfpLzh+8gW2O3K KtOnV/NZZcqhnKNBEiG5EMCoM7fj3G4nPwnatRlw6GmzLsQe750CasJJzab/KITzUs XepsuvtTkAbdTq2Ao0jpiRVzLWvfsiZnYK7HfwHIrBFzhNjH1KLRB/pwQkW6IYS4ii lrJVzqj1a42e6//Q6k6MyPwzL0m5q0+FBO4XpftppEEQ4KiVHUldQs0TCPMMck3p9u ftQfJVh9VhG3g== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20804 Archived-At: --=-hNdVfAYKFtVqiaFRKGy6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi guilers, While debugging a build failure of guile on the core-updates branch of guix (see https://isues.guix.gnu.org/49368) when build for i686 (guix build --system=3Di686-linux), I noticed some following warnings which look suspicious (plenty of tests are passing though, it is only the test numbers.test that fails). If they actually are harmless, can "vm-engine.c" be compiled with -Wno-int-to-pointer-cast? Greetings, Maxime=20 vm-engine.c: In function 'vm_regular_engine': ../libguile/scm.h:176:23: warning: cast to pointer from integer of differen= t size [-Wint-to-pointer-cast] 176 | # define SCM_PACK(x) ((SCM) (x)) | ^ ../libguile/gc.h:49:72: note: in definition of macro 'SCM_GC_SET_CELL_OBJEC= T' 49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n])= =3D (v)) | = ^ ../libguile/gc.h:51:38: note: in expansion of macro 'SCM_PACK' 51 | (SCM_GC_SET_CELL_OBJECT ((x), (n), SCM_PACK (v))) | ^~~~~~~~ ../libguile/gc.h:67:36: note: in expansion of macro 'SCM_GC_SET_CELL_WORD' 67 | #define SCM_SET_CELL_WORD(x, n, v) SCM_GC_SET_CELL_WORD ((x), (n), = (v)) | ^~~~~~~~~~~~~~~~~~~~ vm-engine.c:1964:7: note: in expansion of macro 'SCM_SET_CELL_WORD' 1964 | SCM_SET_CELL_WORD (SP_REF (obj), SP_REF_U64 (idx), SP_REF_U64= (val)); | ^~~~~~~~~~~~~~~~~ ../libguile/scm.h:176:23: warning: cast to pointer from integer of differen= t size [-Wint-to-pointer-cast] 176 | # define SCM_PACK(x) ((SCM) (x)) | ^ ../libguile/gc.h:49:72: note: in definition of macro 'SCM_GC_SET_CELL_OBJEC= T' 49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n])= =3D (v)) | = ^ ../libguile/gc.h:51:38: note: in expansion of macro 'SCM_PACK' 51 | (SCM_GC_SET_CELL_OBJECT ((x), (n), SCM_PACK (v))) | ^~~~~~~~ ../libguile/gc.h:67:36: note: in expansion of macro 'SCM_GC_SET_CELL_WORD' 67 | #define SCM_SET_CELL_WORD(x, n, v) SCM_GC_SET_CELL_WORD ((x), (n), = (v)) | ^~~~~~~~~~~~~~~~~~~~ vm-engine.c:1996:7: note: in expansion of macro 'SCM_SET_CELL_WORD' 1996 | SCM_SET_CELL_WORD (SP_REF (obj), idx, SP_REF_U64 (val)); | ^~~~~~~~~~~~~~~~~ vm-engine.c: In function 'vm_debug_engine': ../libguile/scm.h:176:23: warning: cast to pointer from integer of differen= t size [-Wint-to-pointer-cast] 176 | # define SCM_PACK(x) ((SCM) (x)) | ^ ../libguile/gc.h:49:72: note: in definition of macro 'SCM_GC_SET_CELL_OBJEC= T' 49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n])= =3D (v)) | = ^ ../libguile/gc.h:51:38: note: in expansion of macro 'SCM_PACK' 51 | (SCM_GC_SET_CELL_OBJECT ((x), (n), SCM_PACK (v))) | ^~~~~~~~ ../libguile/gc.h:67:36: note: in expansion of macro 'SCM_GC_SET_CELL_WORD' 67 | #define SCM_SET_CELL_WORD(x, n, v) SCM_GC_SET_CELL_WORD ((x), (n), = (v)) | ^~~~~~~~~~~~~~~~~~~~ vm-engine.c:1964:7: note: in expansion of macro 'SCM_SET_CELL_WORD' 1964 | SCM_SET_CELL_WORD (SP_REF (obj), SP_REF_U64 (idx), SP_REF_U64= (val)); | ^~~~~~~~~~~~~~~~~ ../libguile/scm.h:176:23: warning: cast to pointer from integer of differen= t size [-Wint-to-pointer-cast] 176 | # define SCM_PACK(x) ((SCM) (x)) | ^ ../libguile/gc.h:49:72: note: in definition of macro 'SCM_GC_SET_CELL_OBJEC= T' 49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n])= =3D (v)) | = ^ ../libguile/gc.h:51:38: note: in expansion of macro 'SCM_PACK' 51 | (SCM_GC_SET_CELL_OBJECT ((x), (n), SCM_PACK (v))) | ^~~~~~~~ ../libguile/gc.h:67:36: note: in expansion of macro 'SCM_GC_SET_CELL_WORD' 67 | #define SCM_SET_CELL_WORD(x, n, v) SCM_GC_SET_CELL_WORD ((x), (n), = (v)) | ^~~~~~~~~~~~~~~~~~~~ vm-engine.c:1996:7: note: in expansion of macro 'SCM_SET_CELL_WORD' 1996 | SCM_SET_CELL_WORD (SP_REF (obj), idx, SP_REF_U64 (val)); --=-hNdVfAYKFtVqiaFRKGy6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYORcnRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lgDAPsETDE/j0HICskGQRLSDNmAOrCT ZwvjNbttdwTI1Xxi/gEAkBZr9QsBIXhis2BYbvfTJe/5MEAi8ZdLFXmA8zWs7AA= =nSZG -----END PGP SIGNATURE----- --=-hNdVfAYKFtVqiaFRKGy6--