This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] arm: change the type of a variable to bfd_reloc_code_real_type
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Sat, 2 Apr 2016 15:30:33 -0400
- Subject: [PATCH] arm: change the type of a variable to bfd_reloc_code_real_type
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
It is only ever assigned values in the enum, and it is passed to functions that
expect the argument's type to be the enum. So it seems clearer to make its
type match those things.
built and regtested a cross to arm-none-elf, ok?
Trev
gas/ChangeLog:
2016-04-02 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-arm.c (do_t_branch): Change the type of reloc to
bfd_reloc_code_real_type.
---
gas/config/tc-arm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 2ccc053..e0448a8 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -10971,7 +10971,7 @@ do_t_branch (void)
{
int opcode;
int cond;
- int reloc;
+ bfd_reloc_code_real_type reloc;
cond = inst.cond;
set_it_insn_type (IF_INSIDE_IT_LAST_INSN);
--
2.1.4