]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas bfd_reloc_code_real_type
authorAlan Modra <amodra@gmail.com>
Tue, 8 Jul 2025 23:28:11 +0000 (08:58 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Jul 2025 00:05:06 +0000 (09:35 +0930)
commit7b13f65ccbed9fdc6ac70751a2103b7d89d4f9fb
treedfabb29ed2c4b8d6089be2edb7cc98b96f8a98fb
parent4d2eb1bb7cdd787c057f5e14a1ec8a7a84eb1d81
gas bfd_reloc_code_real_type

Enumeration constants are integer types, so there should be no need to
cast such constants to int in expressions.  (Perhaps some older gccs
warned, I checked back to gcc-4.5.)  Remove some of those unnecessary
casts.  Also remove unnecessary casts to bfd_reloc_code_real_type.
17 files changed:
gas/cgen.c
gas/config/tc-alpha.c
gas/config/tc-arc.c
gas/config/tc-arm.c
gas/config/tc-epiphany.c
gas/config/tc-frv.c
gas/config/tc-iq2000.c
gas/config/tc-m32c.c
gas/config/tc-m32r.c
gas/config/tc-mep.c
gas/config/tc-mips.c
gas/config/tc-mn10300.c
gas/config/tc-mt.c
gas/config/tc-ppc.c
gas/config/tc-s390.c
gas/config/tc-v850.c
gas/config/tc-xstormy16.c