aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-14 15:27:26 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-16 04:55:31 -0400
commite18382406ce321517210e0fdb6a8a0d417078fef (patch)
tree4c47be5e04eea400b26594f8128c8ee2422aa0b1 /gas
parent69a1c8561a541b00b483115eb80a260062a4bb8e (diff)
downloadgdb-e18382406ce321517210e0fdb6a8a0d417078fef.zip
gdb-e18382406ce321517210e0fdb6a8a0d417078fef.tar.gz
gdb-e18382406ce321517210e0fdb6a8a0d417078fef.tar.bz2
m68hc11: make some vars type bfd_reloc_code_real_type
These variables only hold values from the bfd_reloc_code_real_type enum, and are passed to functions that expect the argument to be of type bfd_reloc_code_real_type, so it seems to make sense that there type is bfd_reloc_code_real_type rather than int. gas/ChangeLog: 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/tc-m68hc11.c (fixup8): Change variables type from int to bfd_reloc_code_real_type where appropriate. (fixup16): Likewise. (fixup8_xg): Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-m68hc11.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d5adac6..b50994d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * config/tc-m68hc11.c (fixup8): Change variables type from int to
+ bfd_reloc_code_real_type where appropriate.
+ (fixup16): Likewise.
+ (fixup8_xg): Likewise.
+
2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
* config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c
index 35aa491..2f80e0a 100644
--- a/gas/config/tc-m68hc11.c
+++ b/gas/config/tc-m68hc11.c
@@ -1604,7 +1604,7 @@ fixup8 (expressionS *oper, int mode, int opmode)
else
{
fixS *fixp;
- int reloc;
+ bfd_reloc_code_real_type reloc;
/* Now create an 8-bit fixup. If there was some %hi, %lo
or %page modifier, generate the reloc accordingly. */
@@ -1651,7 +1651,7 @@ fixup16 (expressionS *oper, int mode, int opmode ATTRIBUTE_UNUSED)
else if (oper->X_op != O_register)
{
fixS *fixp;
- int reloc;
+ bfd_reloc_code_real_type reloc;
if ((opmode & M6811_OP_CALL_ADDR) && (mode & M6811_OP_IMM16))
reloc = BFD_RELOC_M68HC11_LO16;
@@ -1721,7 +1721,7 @@ fixup8_xg (expressionS *oper, int mode, int opmode)
if (oper->X_op == O_constant)
{
fixS *fixp;
- int reloc;
+ bfd_reloc_code_real_type reloc;
if ((opmode & M6811_OP_HIGH_ADDR) || (opmode & M6811_OP_LOW_ADDR))
{
@@ -1762,7 +1762,7 @@ fixup8_xg (expressionS *oper, int mode, int opmode)
else
{
fixS *fixp;
- int reloc;
+ bfd_reloc_code_real_type reloc;
/* Now create an 8-bit fixup. If there was some %hi, %lo
modifier, generate the reloc accordingly. */