qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* tcg: pointer size warning on x32 arch
@ 2021-09-11 17:50 Michael Tokarev
  2021-09-11 21:06 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2021-09-11 17:50 UTC (permalink / raw)
  To: qemu-devel

Hi.

The following warning is reported by the C compiler when compiling
tcg code on x32 architecture:

In file included from ../../tcg/tcg.c:429:
tcg/i386/tcg-target.c.inc: In function ‘tcg_out_movi_int’:
tcg/i386/tcg-target.c.inc:959:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   959 |     diff = tcg_pcrel_diff(s, (const void *)arg) - 7;

I dunno if we should be concerned or if it is worth to support x32
in the first place. But I thought I'd report it anyway.

Thanks!

/mjt


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-20 18:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-11 17:50 tcg: pointer size warning on x32 arch Michael Tokarev
2021-09-11 21:06 ` Philippe Mathieu-Daudé
2021-09-11 21:46   ` Philippe Mathieu-Daudé
2021-09-12 13:10     ` Richard Henderson
2021-09-20 18:43       ` Richard Henderson

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 NNTP newsgroup(s).