This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ARM breakage with "[PATCH 3/4] allow targets to call do_alignment () directly"
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: tbsaunde+binutils at tbsaunde dot org
- Cc: binutils at sourceware dot org, tbsaunde+binutils at tbsaunde dot org
- Date: Tue, 8 Mar 2016 20:58:41 +0100
- Subject: ARM breakage with "[PATCH 3/4] allow targets to call do_alignment () directly"
- Authentication-results: sourceware.org; auth=none
> From: tbsaunde+binutils@tbsaunde.org
> Date: Sat, 5 Mar 2016 22:10:17 -0500
> gas/ChangeLog:
>
> 2016-03-05 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
>
> * config/tc-epiphany.c (epiphany_elf_section_rtn): Call do_align
> directly.
> (epiphany_elf_section_text): Likewise.
> * gas/config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
> (ip2k_elf_section_text): Likewise.
> * gas/read.c (do_align): Make it not static.
> * gas/read.h (do_align): New prototype.
Not sure why neither you nor anyone else seems to have seen
this, but my autotester sees this, building arm-eabi and
arm-linux-eabi:
gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/tmp/hpautotest-binutils/bsrc/src/gas -I. -I/tmp/hpautotest-binutils/bsrc/src/gas -I../bfd -I/tmp/hpautotest-binutils/bsrc/src/gas/config -I/tmp/hpautotest-binutils/bsrc/src/gas/../include -I/tmp/hpautotest-binutils/bsrc/src/gas/.. -I/tmp/hpautotest-binutils/bsrc/src/gas/../bfd -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I/tmp/hpautotest-binutils/bsrc/src/gas/../zlib -g -O2 -MT tc-arm.o -MD -MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f 'config/tc-arm.c' || echo '/tmp/hpautotest-binutils/bsrc/src/gas/'`config/tc-arm.c
/tmp/hpautotest-binutils/bsrc/src/gas/config/tc-arm.c: In function 'neon_alignment_bit':
/tmp/hpautotest-binutils/bsrc/src/gas/config/tc-arm.c:16678:47: error: declaration of 'do_align' shadows a global declaration [-Werror=shadow]
In file included from /tmp/hpautotest-binutils/bsrc/src/gas/as.h:557:0,
from /tmp/hpautotest-binutils/bsrc/src/gas/config/tc-arm.c:26:
/tmp/hpautotest-binutils/bsrc/src/gas/read.h:156:13: error: shadowed declaration is here [-Werror=shadow]
/tmp/hpautotest-binutils/bsrc/src/gas/config/tc-arm.c: In function 'do_neon_ld_st_lane':
/tmp/hpautotest-binutils/bsrc/src/gas/config/tc-arm.c:16717:19: error: declaration of 'do_align' shadows a global declaration [-Werror=shadow]
Please fix.
brgds, H-P