[Bug c/123858] wcast-function-type warning may be too strict for conversions between pointer and integer types of same width
harald at gigawatt dot nl
gcc-bugzilla@gcc.gnu.org
Sat Jan 31 15:45:58 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123858
Harald van Dijk <harald at gigawatt dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |harald at gigawatt dot nl
--- Comment #3 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Joseph S. Myers from comment #1)
> At least some m68k ABIs return pointers and integers in different registers,
> though I don't know if ABIs for any more modern processors have that
> property.
The x32 ABI for x86_64 returns pointers and integers in the same registers, but
pointers are zero-extended and integers are not, so casts like this would still
break.
More information about the Gcc-bugs
mailing list