This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 1/2] change the type of some fields to bfd_reloc_code_real_type
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Date: Tue, 17 May 2016 23:25:01 -0400
- Subject: [PATCH 1/2] change the type of some fields to bfd_reloc_code_real_type
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
HI,
$subject, they only ever hold values of the enum so this seems clearer.
built and regtested cross to dlx-elf, and tic4x-coff, ok?
Trev
gas/ChangeLog:
2016-05-17 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-dlx.c (struct machine_it): change the type of a field from
int to bfd_reloc_code_real_type.
* config/tc-tic4x.c: Likewise.
---
gas/config/tc-dlx.c | 2 +-
gas/config/tc-tic4x.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas/config/tc-dlx.c b/gas/config/tc-dlx.c
index b636cec..03e8de9 100644
--- a/gas/config/tc-dlx.c
+++ b/gas/config/tc-dlx.c
@@ -52,7 +52,7 @@ struct machine_it
int pcrel;
int size;
int reloc_offset; /* Offset of reloc within insn. */
- int reloc;
+ bfd_reloc_code_real_type reloc;
int HI;
int LO;
}
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c
index 97f830c..16fa8b2 100644
--- a/gas/config/tc-tic4x.c
+++ b/gas/config/tc-tic4x.c
@@ -124,7 +124,7 @@ typedef struct tic4x_insn
unsigned int nchars; /* This is always 4 for the C30. */
unsigned long opcode; /* Opcode number. */
expressionS exp; /* Expression required for relocation. */
- int reloc; /* Relocation type required. */
+ bfd_reloc_code_real_type reloc; /* Relocation type required. */
int pcrel; /* True if relocation PC relative. */
char *pname; /* Name of instruction in parallel. */
unsigned int num_operands; /* Number of operands in total. */
--
2.7.0