http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46596
Jeffrey Yasskin <jyasskin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jyasskin at gcc dot gnu.org --- Comment #4 from Jeffrey Yasskin <jyasskin at gcc dot gnu.org> 2012-02-29 09:41:05 UTC --- glibc runs into the "sorry, unimplemented" part of the issue, with delta-reduced code like: $ cat test.i typedef __builtin_va_list __gnuc_va_list; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__artificial__)) void syslog (int __pri, const char *__fmt, ...) { }; typedef __gnuc_va_list va_list; void __syslog(int pri, const char *fmt, ...) { } extern __typeof (__syslog) syslog __attribute__ ((alias ("__syslog"))); void __vsyslog_chk(int pri, int flag, const char *fmt, va_list ap) { if (pri & ~(0x07|0x03f8)) { syslog(3|0x02|0x20|0x01, "syslog: unknown facility/priority: %x", pri); } } $ gcc -c -O2 -Winline test.i test.i: In function ‘__vsyslog_chk’: test.i:7:28: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available test.i:10:11: sorry, unimplemented: called from here $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) I haven't yet built a gcc from head to make sure the behavior is there without Ubuntu's patches. The glibc problem was described at http://plash.beasts.org/wiki/GlibcBuildIssues#head-b9149fbab065967691cf1bade23d84325c05e9b0 and reported at http://sourceware.org/bugzilla/show_bug.cgi?id=10375, but it looks like a gcc problem to me.