This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/2] sparc: make a field type 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: Mon, 18 Jul 2016 02:14:36 -0400
- Subject: [PATCH 2/2] sparc: make a field type bfd_reloc_code_real_type
- Authentication-results: sourceware.org; auth=none
- References: <1468822476-3493-1-git-send-email-tbsaunde+binutils@tbsaunde.org>
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
After removing the sentinel in pop_table the field only ever has a value from
the bfd_reloc_code_real_type enum, so we might as well make that its type.
built and regtested sparc64-linux-gnu, ok?
Trev
gas/ChangeLog:
2016-07-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-sparc.c (struct pop_entry): Make the type of reloc
bfd_reloc_code_real_type.
---
gas/config/tc-sparc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index 45b2be6..9171407 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -883,7 +883,7 @@ struct pop_entry
/* The name as it appears in assembler. */
const char *name;
/* The reloc this pseudo-op translates to. */
- int reloc;
+ bfd_reloc_code_real_type reloc;
/* Flags. See F_POP_* above. */
int flags;
};
--
2.8.1