https://sourceware.org/bugzilla/show_bug.cgi?id=19751
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Cary Coutant from comment #2) > Created attachment 9062 [details] > Add ATTRIBUTE_UNUSED where needed. > > HJ, please try this patch and see if it silences the warnings. I'd prefer to > leave these functions defined. Doesn't work: /export/build/gnu/gcc-x32/release/usr/gcc-6.0.0-x32/bin/g++ -W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -I/export/gnu/import/git/sources/binutils-gdb/gold/../zlib -g -O2 -static-libstdc++ -static-libgcc -o ld-new main.o i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o tilegx.o mips.o aarch64.o aarch64-reloc-property.o s390.o libgold.a ../libiberty/libiberty.a -lpthread -ldl -L./../zlib -lz -ldl sparc.o: In function `(anonymous namespace)::Target_sparc<64, true>::do_finalize_sections(gold::Layout*, gold::Input_objects const*, gold::Symbol_table*)': /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3249: undefined reference to `gold::Sized_symbol<64>::init_undefined(char const*, char const*, unsigned long, elfcpp::STT, elfcpp::STB, elfcpp::STV, unsigned char)' /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3253: undefined reference to `gold::Sized_symbol<64>::init_constant(char const*, char const*, unsigned long, unsigned long, elfcpp::STT, elfcpp::STB, elfcpp::STV, unsigned char, bool)' sparc.o: In function `(anonymous namespace)::Target_sparc<32, true>::do_finalize_sections(gold::Layout*, gold::Input_objects const*, gold::Symbol_table*)': /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3249: undefined reference to `gold::Sized_symbol<32>::init_undefined(char const*, char const*, unsigned int, elfcpp::STT, elfcpp::STB, elfcpp::STV, unsigned char)' /export/gnu/import/git/sources/binutils-gdb/gold/sparc.cc:3253: undefined reference to `gold::Sized_symbol<32>::init_constant(char const*, char const*, unsigned int, unsigned int, elfcpp::STT, elfcpp::STB, elfcpp::STV, unsigned char, bool)' collect2: error: ld returned 1 exit status Makefile:745: recipe for target 'ld-new' failed make: *** [ld-new] Error 1 -- 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