[binutils-gdb] aarch64: fix build with old glibc
Jan Beulich
jbeulich@sourceware.org
Fri Jul 5 06:39:38 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e6292a4b2c7ff58f40f7717eb3659996fe5deae3
commit e6292a4b2c7ff58f40f7717eb3659996fe5deae3
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Jul 5 08:38:39 2024 +0200
aarch64: fix build with old glibc
As was pointed out several times before, old glibc declares index(),
resulting in warnings from -Wshadow, in turn failing the build due to
-Werror.
Diff:
---
gas/config/tc-aarch64.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index e78be670885..3dfbeb7bd00 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -3943,10 +3943,10 @@ parse_shifter_zt0_with_bit_index (char **str,
return true;
}
- int64_t index;
- if (!parse_index_expression (str, &index))
+ int64_t idx;
+ if (!parse_index_expression (str, &idx))
return false;
- operand->imm.value = index;
+ operand->imm.value = idx;
if (!skip_past_comma (str))
return true;
More information about the Binutils-cvs
mailing list