https://sourceware.org/bugzilla/show_bug.cgi?id=18307
Bug ID: 18307 Summary: gold/dwo fails compiling (output.h: 'addr' may be used unintialized) Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: dilyan.palauzov at aegee dot org CC: ian at airs dot com On master (commit 8900d71e3880437) gold/dwo fails compiling using gcc492 wi th this message: make[2]: Entering directory '/mnt/new/src/gcc/binutils-git-build/gold' g++ -W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwp -I/home/git/binutils-gdb/gold/../zlib -pipe -O3 -fno-fat-lto-objects -flto -Wl,-O1 -Wl,-z,relro -Wl,-s -o dwp dwp.o libgol d.a ../libiberty/libiberty.a -lpthread -ldl -L./../zlib -lz -ldl /home/git/binutils-gdb/gold/script-sections.cc: In member function ‘create_sections’: /home/git/binutils-gdb/gold/output.h:4548:25: error: ‘addr’ may be used uninitialized in this function [-Werror=maybe-uninitialized] this->paddr_ = paddr; ^ /home/git/binutils-gdb/gold/layout.cc:1922:12: note: ‘addr’ was declared here uint64_t addr; ^ lto1: all warnings being treated as errors lto-wrapper: g++ returned 1 exit status /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../x86_64-unknown-linu x-gnu/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status Makefile:738: recipe for target 'dwp' failed make[2]: *** [dwp] Error 1 make[2]: Leaving directory '/mnt/new/src/gcc/binutils-git-build/gold' -- 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