[PATCH 2/2] sparc: make a field type bfd_reloc_code_real_type

tbsaunde+binutils@tbsaunde.org tbsaunde+binutils@tbsaunde.org
Mon Jul 18 06:07:00 GMT 2016


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



More information about the Binutils mailing list