From e6292a4b2c7ff58f40f7717eb3659996fe5deae3 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 5 Jul 2024 08:38:39 +0200 Subject: 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. --- gas/config/tc-aarch64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gas') diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index e78be67..3dfbeb7 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; -- cgit v1.1