This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: [committed] ARC/GAS: Correct a `spaces' global shadowing error
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: "Maciej W. Rozycki" <macro at imgtec dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 9 Dec 2016 09:42:31 +0000
- Subject: RE: [committed] ARC/GAS: Correct a `spaces' global shadowing error
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.00.1612082254430.6743@tp.orcam.me.uk>
> Fix a commit a9752fdf8398 ("[ARC] Sync cpu names with the ones accepted
> by GCC.") build regression:
>
> cc1: warnings being treated as errors
> .../gas/config/tc-arc.c: In function 'arc_show_cpu_list':
> .../gas/config/tc-arc.c:3452: error: declaration of 'spaces' shadows a global
> declaration
> .../gas/../include/libiberty.h:248: error: shadowed declaration is here
> make[4]: *** [tc-arc.o] Error 1
>
> in a way following commit 91d6fa6a035c ("Add -Wshadow to the gcc
> command
> line options used when compiling the binutils.").
>
> gas/
> * config/tc-arc.c (arc_show_cpu_list): Rename `spaces' local
> variable to `space_buf'.
Thank you for spotting this,
Claudiu