This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] AArch64/opcodes: Correct an `index' global shadowing error
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 25 Oct 2016 03:39:39 -0400
- Subject: [binutils-gdb] AArch64/opcodes: Correct an `index' global shadowing error
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT eaf0270367cea4695d461261eb7fbd16caaeacf1 ***
Author: Maciej W. Rozycki <macro@imgtec.com>
Branch: master
Commit: eaf0270367cea4695d461261eb7fbd16caaeacf1
AArch64/opcodes: Correct an `index' global shadowing error
Fix a commit 4df068de5214 ("Add support for SVE addressing modes") build
regression:
cc1: warnings being treated as errors
.../opcodes/aarch64-dis.c: In function 'aarch64_ext_sve_addr_rr_lsl':
.../opcodes/aarch64-dis.c:1324: error: declaration of 'index' shadows a global declaration
/usr/include/string.h:303: error: shadowed declaration is here
make[3]: *** [aarch64-dis.lo] Error 1
in a way following commit 91d6fa6a035c ("Add -Wshadow to the gcc command
line options used when compiling the binutils.").
opcodes/
* aarch64-dis.c (aarch64_ext_sve_addr_rr_lsl): Rename `index'
local variable to `index_regno'.