bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/18313] binutils: LTO error due possibly uninitialized valu


From: dilyan.palauzov at aegee dot org
Subject: [Bug binutils/18313] binutils: LTO error due possibly uninitialized values
Date: Thu, 23 Apr 2015 22:34:56 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18313

--- Comment #1 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee 
dot org> ---
Compiling ld also fails:

make[2]: Entering directory '/mnt/new/src/gcc/binutils-git-build/ld'
/bin/sh ./libtool --tag=CC   --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -DELF_LIST_OPTIONS=TRUE
-DELF_SHLIB_LIST_OPTIONS=TRUE -DELF_PLT_UNWIND_LIST_OPTIONS=TRUE -pipe -O3
-fno-fat-lto-objects -flto  -Wl,-O1 -Wl,-z,relro -Wl,-s -o ld-new ldgram.o
ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o
ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o ldbuildid.o eelf_x86_64.o
eelf32_x86_64.o eelf_i386.o ei386linux.o eelf_l1om.o eelf_k1om.o 
../bfd/libbfd.la ../libiberty/libiberty.a  -ldl -ldl 
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow
-Werror -DELF_LIST_OPTIONS=TRUE -DELF_SHLIB_LIST_OPTIONS=TRUE
-DELF_PLT_UNWIND_LIST_OPTIONS=TRUE -pipe -O3 -fno-fat-lto-objects -flto -Wl,-O1
-Wl,-z -Wl,relro -Wl,-s -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o
mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o
ldcref.o plugin.o ldbuildid.o eelf_x86_64.o eelf32_x86_64.o eelf_i386.o
ei386linux.o eelf_l1om.o eelf_k1om.o  ../bfd/.libs/libbfd.a
-L/src/gcc/binutils-git-build/zlib -lz ../libiberty/libiberty.a -ldl
/home/git/binutils-gdb/bfd/compress.c: In function 'decompress_contents':
/home/git/binutils-gdb/zlib/inflate.c:121:20: error: 'strm.state' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
     state->lencode = state->distcode = state->next = state->codes;
                    ^
/home/git/binutils-gdb/bfd/compress.c:35:12: note: 'strm.state' was declared
here
   z_stream strm;
            ^
/home/git/binutils-gdb/bfd/compress.c: In function
'bfd_compress_section_contents':
/home/git/binutils-gdb/bfd/compress.c:159:4: error: 'zlib_size' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
    memmove (buffer + compression_header_size,
    ^
/home/git/binutils-gdb/bfd/compress.c:86:7: note: 'zlib_size' was declared here
   int zlib_size;
       ^
lto1: all warnings being treated as errors
lto-wrapper: gcc returned 1 exit status
/usr/x86_64-unknown-linux-gnu/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:1079: recipe for target 'ld-new' failed
make[2]: *** [ld-new] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]