http://sourceware.org/bugzilla/show_bug.cgi?id=15417
Bug #: 15417 Summary: elflink.c does not compile on HPUX-11.23 ia64 Product: binutils Version: 2.23 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassig...@sourceware.org ReportedBy: o.fle...@science-computing.de Classification: Unclassified Created attachment 7009 --> http://sourceware.org/bugzilla/attachment.cgi?id=7009 Initialize idx to zero While compiling binultils 2.23.2 with a gcc-3.4.6 I got an Warning, turned into an error by -Werror While looking at the source I did not see why in some corner case "sym_count" could not be zero somehow, skipping the initialization of idx. So I propose a tiny patch... make[4]: Entering directory `/net/olympic/fs2/scr/olympic/flebbe/binutils-2.23.2-1/ARENA/32/bfd' /usr/local/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd -D_LARGEFILE64_SOURCE -I. -I/soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd -I/soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd/../include -DHAVE_bfd_elf32_ia64_hpux_big_vec -DHAVE_bfd_elf64_ia64_hpux_big_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -DBINDIR='"/usr/local/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT elflink.lo -MD -MP -MF .deps/elflink.Tpo -c -o elflink.lo /soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd/elflink.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd -D_LARGEFILE64_SOURCE -I. -I/soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd -I/soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd/../include -DHAVE_bfd_elf32_ia64_hpux_big_vec -DHAVE_bfd_elf64_ia64_hpux_big_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT elflink.lo -MD -MP -MF .deps/elflink.Tpo -c /soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd/elflink.c -o elflink.o /soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd/elflink.c: In function `bfd_elf_link_add_symbols': /soft/os/gcc/binutils-2.23.2/binutils-2.23.2/bfd/elflink.c:4726: warning: 'idx' might be used uninitialized in this function gmake[4]: *** [elflink.lo] Error 1 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils