This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
error when building with LTO
- From: niXman <i dot nixman at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sat, 29 Sep 2012 15:13:42 +0400
- Subject: error when building with LTO
Hello,
Without using LTO binutils is build successfully. But, when I add the
'-flto' flag in LDFLAGS I get the following error:
binutils-2.22.90/gas/write.c: In function 'chain_frchains_together':
binutils-2.22.90/gas/write.c:409:3: error: 'dummy.fr_type' may be used
uninitialized in this function [-Werror=uninitialized]
In file included from binutils-2.22.90/bfd/../include/coff/internal.h:541:0,
from :631:
binutils-2.22.90/gas/write.c:392:9: note: 'dummy' was declared here
lto1.exe: all warnings being treated as errors
how can I fix it?
--
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/