arm: change the type of a variable to bfd_reloc_code_real_type
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 31 Mar 2016 23:49:05 +0000 (19:49 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Sun, 3 Apr 2016 23:15:39 +0000 (19:15 -0400)
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.

gas/ChangeLog:

2016-04-03  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/ChangeLog
gas/config/tc-arm.c

index d4886c0..4759033 100644 (file)
@@ -1,5 +1,10 @@
 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
+       * config/tc-arm.c (do_t_branch): Change the type of reloc to
+       bfd_reloc_code_real_type.
+
+2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
        * config/bfin-parse.y (current_inputline): Remove definition.
        * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
 
index 2ccc053..e0448a8 100644 (file)
@@ -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);