This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] rx: make the type of a variable 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: Thu, 26 May 2016 07:35:45 -0400
- Subject: [PATCH] rx: make the type of a variable bfd_reloc_code_real_type
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
similar to previous patches its only assigned values from the enum so it might
as well be that type.
built and regtested rx-elf, ok?
Trev
gas/ChangeLog:
2016-05-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-rx.c (md_convert_frag): Make the type of reloc_type
bfd_reloc_code_real_type.
---
gas/config/tc-rx.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c
index f87aac1..a9beec7 100644
--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -1762,7 +1762,8 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED,
rx_bytesT * rxb = fragP->tc_frag_data;
addressT addr0, mypc;
int disp;
- int reloc_type, reloc_adjust;
+ int reloc_adjust;
+ bfd_reloc_code_real_type reloc_type;
char * op = fragP->fr_opcode;
int keep_reloc = 0;
int ri;
@@ -2138,6 +2139,8 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED,
case BFD_RELOC_RX_32_OP:
fix->fx_size = 4;
break;
+ default:
+ break;
}
}
--
2.8.1