This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] arm: change the type of a variable to bfd_reloc_code_real_type


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2fe882148c2a8f8f604ad040dc07fcf1899a8aa3

commit 2fe882148c2a8f8f604ad040dc07fcf1899a8aa3
Author: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Date:   Thu Mar 31 19:49:05 2016 -0400

    arm: change the type of a variable to bfd_reloc_code_real_type
    
    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.

Diff:
---
 gas/ChangeLog       | 5 +++++
 gas/config/tc-arm.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index d4886c0..4759033 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
 
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 2ccc053..e0448a8 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]