From: Maxime Devos <maximedevos@telenet.be>
To: guile-devel@gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: Casts to pointer from integer of different size?
Date: Tue, 06 Jul 2021 15:37:33 +0200 [thread overview]
Message-ID: <c4b1c384d413c8241c41fe1df7a8942688636ca9.camel@telenet.be> (raw)
[-- Attachment #1: Type: text/plain, Size: 4546 bytes --]
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=i686-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
vm-engine.c: In function 'vm_regular_engine':
../libguile/scm.h:176:23: warning: cast to pointer from integer of different 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_OBJECT'
49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n]) = (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 different 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_OBJECT'
49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n]) = (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 different 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_OBJECT'
49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n]) = (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 different 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_OBJECT'
49 | #define SCM_GC_SET_CELL_OBJECT(x, n, v) ((((SCM *)SCM2PTR (x)) [n]) = (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));
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
reply other threads:[~2021-07-06 13:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c4b1c384d413c8241c41fe1df7a8942688636ca9.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).