diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-07-05 08:38:39 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-07-05 08:38:39 +0200 |
commit | e6292a4b2c7ff58f40f7717eb3659996fe5deae3 (patch) | |
tree | 7c4d5f7c3d7c1b22ec7a560e61f3b28a9e5ce5fd | |
parent | 3880820e340e8875e43762f63fb8f82757e447ce (diff) | |
download | gdb-e6292a4b2c7ff58f40f7717eb3659996fe5deae3.zip gdb-e6292a4b2c7ff58f40f7717eb3659996fe5deae3.tar.gz gdb-e6292a4b2c7ff58f40f7717eb3659996fe5deae3.tar.bz2 |
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.
-rw-r--r-- | gas/config/tc-aarch64.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |