]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas md_apply_fix bad casts
authorAlan Modra <amodra@gmail.com>
Mon, 9 Jun 2025 05:30:30 +0000 (15:00 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2025 22:15:18 +0000 (07:45 +0930)
commit44fce26c10eb598b5117665a1d36db1d1b14476f
tree5ae8dd9c2a6dd9a8202c3897dd88034a4998f749
parent9f8e772be472f457f19f06be10e1309568067a09
gas md_apply_fix bad casts

ns32k and z8k cast a valueT pointer to a long pointer when loading
md_apply_fix's value.  That's quite wrong if the types have different
sizes, as they may eg. on a 32-bit host with 64-bit bfd support.
sparc also loads the value via a cast pointer, but at least in that
case the cast is to the same size pointer.  None of these casts are
needed.  Get rid of them.
gas/config/tc-ns32k.c
gas/config/tc-sparc.c
gas/config/tc-z8k.c