https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487
Bug ID: 61487 Summary: LTO breaks on mips with wireless-tools 0.29 Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: rose.garcia-eggl2fk at yopmail dot com http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz (no dependencies, so easy to test) when built with a gcc 4.8.3 linux crosscompiler plus -flto, i get: mips-linux-musl-gcc -L/media/3T/x-prefix/mips/lib -isystem /media/3T/x-prefix/mips/include -s -Wl,--gc-sections -Wl,-z,relro,-z,now -flto -static -Wl,-s -D_GNU_SOURCE -D_BSD_SOURCE -fdata-sections -ffunction-sections -Os -g0 -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack -ftree-dce -s -Os -flto -MMD -o iwlist iwlist.o libiw.a -lm lto1: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:2935 (the crosscompiler is built from the musl-cross project, current tip as of today, using musl 1.1.1; but my guess is that this would happen with other libcs as well)