Trying to build MySQL 5.5.1-m2 with gcc 4.5.0 svn 156081 and lto enabled results in:
x86_64-unknown-linux-gnu-g++ -m64 -O1 -fomit-frame-pointer -fweb -frename-registers -Wl,-O1 -Wl,-z -Wl,combreloc -Wl,-z -Wl,relro -Wl,--enable-new-dtags -Wl,--hash-style=gnu -g -flto -felide-constructors -fno-exceptions -fno-rtti -fPIC -fvisibility-inlines-hidden -fno-implicit-templates -fno-exceptions -fno-rtti -m64 -O1 -fomit-frame-pointer -fweb -frename-registers -Wl,-O1 -Wl,-z -Wl,combreloc -Wl,-z -Wl,relro -Wl,--enable-new-dtags -Wl,--hash-style=gnu -g -rdynamic -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/libedit/libedit.a -lncursesw -lpthread ../libmysql/.libs/libmysqlclient.so -lcrypt -lnsl -lm -lz -Wl,-rpath -Wl,/usr/lib64/mysql lto1: internal compiler error: in ipcp_iterate_stage, at ipa-cp.c:759 Please submit a full bug report, with preprocessed source if appropriate. Not sure how to generate a meaningful preprocessed source for LTO bits -- does it come down to adding the preprocessed source for all listed source files? -- Summary: lto1: ICE in ipcp_iterate_stage, at ipa-cp.c:759 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bero at arklinux dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42826