• Maciej W. Rozycki's avatar
    BFD/ELF: Correct a `remove' global shadowing error for pre-4.8 GCC · df402ddc
    Maciej W. Rozycki authored
    Remove `-Wshadow' compilation errors:
    
    cc1: warnings being treated as errors
    .../bfd/elflink.c: In function 'bfd_elf_final_link':
    .../bfd/elflink.c:11722: error: declaration of 'remove' shadows a global declaration
    /usr/include/stdio.h:154: error: shadowed declaration is here
    
    which for versions of GCC before 4.8 prevent support for ELF targets
    from being built.  See also GCC PR c/53066.
    
    	bfd/
    	* elflink.c (bfd_elf_final_link): Rename `remove' local variable
    	to `remove_section'.
    
    (cherry picked from commit 5270eddc6ed6b5d8e4e2817491bb44b784fa6f81)
    df402ddc
Name
Last commit
Last update
bfd Loading commit data...
binutils Loading commit data...
config Loading commit data...
cpu Loading commit data...
elfcpp Loading commit data...
etc Loading commit data...
gas Loading commit data...
gdb Loading commit data...
gold Loading commit data...
gprof Loading commit data...
include Loading commit data...
intl Loading commit data...
ld Loading commit data...
libdecnumber Loading commit data...
libiberty Loading commit data...
opcodes Loading commit data...
readline Loading commit data...
sim Loading commit data...
texinfo Loading commit data...
zlib Loading commit data...
.cvsignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
COPYING.LIBGLOSS Loading commit data...
COPYING.NEWLIB Loading commit data...
COPYING3 Loading commit data...
COPYING3.LIB Loading commit data...
ChangeLog Loading commit data...
MAINTAINERS Loading commit data...
Makefile.def Loading commit data...
Makefile.in Loading commit data...
Makefile.tpl Loading commit data...
README Loading commit data...
README-maintainer-mode Loading commit data...
ar-lib Loading commit data...
compile Loading commit data...
config-ml.in Loading commit data...
config.guess Loading commit data...
config.rpath Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
depcomp Loading commit data...
djunpack.bat Loading commit data...
install-sh Loading commit data...
libtool.m4 Loading commit data...
ltgcc.m4 Loading commit data...
ltmain.sh Loading commit data...
ltoptions.m4 Loading commit data...
ltsugar.m4 Loading commit data...
ltversion.m4 Loading commit data...
lt~obsolete.m4 Loading commit data...
makefile.vms Loading commit data...
missing Loading commit data...
mkdep Loading commit data...
mkinstalldirs Loading commit data...
move-if-change Loading commit data...
setup.com Loading commit data...
src-release.sh Loading commit data...
symlink-tree Loading commit data...
test-driver Loading commit data...
ylwrap Loading commit data...