I started trying to build the linux kernel with LTO, but quickly ran into % gcc45 -flto -O2 -nostdlib -r -o init/built-in.o init/main.o init/version.o init/mounts.o init/initramfs.o init/calibrate.o In function 'error': lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: /usr/local/bin/gcc45 returned 1 exit status collect2: lto-wrapper returned 1 exit status
Seems error itself is broken? gcc version 4.5.0 20091219 (experimental) (GCC) -- Summary: lto segfaults Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andi-gcc at firstfloor dot org GCC build triplet: x86_64-linux GCC host triplet: x86_64-linux GCC target triplet: x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42441