https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63407
Bug ID: 63407 Summary: xsdcxx built with LTO aborts on xsd files of libkolabxml - when LTO is disabled problem is gone Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: nheghathivhistha at gmail dot com Gentoo dev-cpp/xsd-3.3.0-r3 compiled (without troubles) with -flto=4 -fuse-linker-plugin aborts itself during processing of net-libs/libkolabxml-1.0.1 xsd files with message: "terminate called after throwing an instance of 'Cult::MM::Absent'". When LTO is not used to compile xsdcxx program problem is not present. -rwxr-xr-x 1 root root 3911616 Sep 29 15:00 /usr/bin/xsdcxx -rwxr-xr-x 1 root root 4527928 Sep 29 14:15 /usr/bin/xsdcxx.nolto gcc -v Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2-alpha20140928/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.2-alpha20140928/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.9.2_alpha20140928/work/gcc-4.9-20140928/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2-alpha20140928 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2-alpha20140928/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140928 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140928/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140928/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2-alpha20140928/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140928/python --enable-languages=c,c++,go,objc,obj-c++,fortran,ada --enable-obsolete --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.2_alpha20140928' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --enable-lto --with-cloog --disable-isl-version-check Thread model: posix gcc version 4.9.2-alpha20140928 20140929 (prerelease) [gcc-4_9-branch revision 215679] (Gentoo 4.9.2_alpha20140928) C(XX)FLAGS "-flto=4 -fuse-linker-plugin -O2 -g -pipe -march=core2 -mtune=core2" I am going to try version 5 from svn. Should I post disassemble diff output or how to continue please? I not enabled static libraries on my system so upload of binaries itself will be problem.