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

Jie Zhang jie.zhang@analog.com
Thu Jan 14 04:52:00 GMT 2010


On 01/14/2010 09:59 AM, Masaki Muranaka wrote:
> 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?
>
I don't think so. It seems gcc-3.4 is stricter than gcc-4.x on shadow 
warning. gcc-4.x does not report these warnings. I'm committing the 
attached patch. Tested using gcc-3.4 on Debian. Regtest is OK for 
bfin-elf target.

Thanks,
Jie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-bfin-fix-gcc-34-shadow-warnings.diff
Type: text/x-diff
Size: 8627 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100114/b7e1122c/attachment.bin>


More information about the Binutils mailing list