On Mon, 17 Jun 2013, Andi Kleen wrote: > Richard Biener <rguent...@suse.de> writes: > > > Andi Kleen <a...@firstfloor.org> wrote: > > > >> > >>Current trunk cannot build LTO kernels now, with your patch, > >>as reported earlier. > >> > >>Please fix ASAP. I'm surprised that you checked in a patchkit > >>with such serious reported problems. > > > > Instructions for reproducing this issue appreciated. I've never built lto > > kernels. > > Install recent HJ Lu's Linux binutils somewhere > (https://www.kernel.org/pub/linux/devel/binutils/) > > Build a gcc that uses the linker from above as plugin ld > > Check out git://github.com/andikleen/linux-misc -b lto-3.9 > > Put attached config as ".config" into build dir. > > make oldconfig > make CC=gcc LD=ld-from-linux-binutils AR=gcc-ar -j ..
Ok, it doesn't use LTO for me, not even with adding CFLAGS="-O2 -flto" here. Richard. > -Andi > > -- Richard Biener <rguent...@suse.de> SUSE / SUSE Labs SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 GF: Jeff Hawn, Jennifer Guild, Felix Imend