This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Failed to build bfin-elf-as because of shadowed declaration.


Hello,

I've some warnings when building tc-btin.c (the version of i386-pc-mingw32-gcc is 3.4.5).
This can be fixed routinely. I hesitate to create patch though since there are a lot of declarations in bfin-aux.h.
It's possible to fix the place we get warnings. But it brakes some kind of consistency.
Do we need variable names in global declaration there?

Thanks,
- - - -
i386-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../pf3gnuchains4x/gas  -I. -I../../pf3gnuchains4x/gas -I../bfd -I../../pf3gnuchains4x/gas/config -I../../pf3gnuchains4x/gas/../inc\
lude -I../../pf3gnuchains4x/gas/.. -I../../pf3gnuchains4x/gas/../bfd -I./../intl -DLOCALEDIR="\"/pizza/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wsha\
dow -Wno-format -Werror -g -O2 -D__USE_MINGW_ACCESS -MT tc-bfin.o -MD -MP -MF .deps/tc-bfin.Tpo -c -o tc-bfin.o `test -f 'config/tc-bfin.c' || echo '../../pf3gnuchains4x/gas/'\
`config/tc-bfin.c
In file included from ../../pf3gnuchains4x/gas/config/tc-bfin.c:1132:
../../pf3gnuchains4x/gas/config/bfin-aux.h:50: warning: declaration of 'reloc' shadows a global declaration
../../pf3gnuchains4x/gas/config/tc-bfin.c:925: warning: shadowed declaration is here
(snip)

--
Masaki Muranaka
Monami software


Attachment: PGP.sig
Description: =?iso-2022-jp?B?GyRCJDMkbCRPJUclOCU/JWs9cEw+JDUkbCQ/JWElQyU7GyhC?==?iso-2022-jp?B?GyRCITwlOCROSXRKLCRHJDkbKEI=?=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]