aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-riscv.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 6c9ff3e..45ad93b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2018-02-05 Maciej W. Rozycki <macro@mips.com>
+ * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
+ `expr' parameter to `ep'.
+
+2018-02-05 Maciej W. Rozycki <macro@mips.com>
+
* testsuite/gas/mips/reginfo-2.d: New test.
* testsuite/gas/mips/reginfo-2-n32.d: New test.
* testsuite/gas/mips/reginfo-2.l: New test stderr output.
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index a84240d..f1bc7f9 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -1191,14 +1191,14 @@ my_getSmallExpression (expressionS *ep, bfd_reloc_code_real_type *reloc,
an implicit offset was detected. */
static bfd_boolean
-riscv_handle_implicit_zero_offset (expressionS *expr, const char *s)
+riscv_handle_implicit_zero_offset (expressionS *ep, const char *s)
{
/* Check whether there is only a single bracketed expression left.
If so, it must be the base register and the constant must be zero. */
if (*s == '(' && strchr (s + 1, '(') == 0)
{
- expr->X_op = O_constant;
- expr->X_add_number = 0;
+ ep->X_op = O_constant;
+ ep->X_add_number = 0;
return TRUE;
}