[Bug tree-optimization/10980] vararg functions are not inlined
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Fri Sep 23 13:59:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10980
--- Comment #8 from Jan Hubicka <hubicka at ucw dot cz> 2011-09-23 13:40:55 UTC ---
> This problem popped up when compiling LLVM's libc++:
> M:\Development\Source\libc++\src\locale.cpp:1:0: warning: -fPIC ignored for
> target (all code is position independent) [enabled by default]
> M:\Development\Source\libc++\include/locale: In function 'int
> std::__1::__asprintf_l(char**, _locale_t, const char*, ...)':
> M:\Development\Source\libc++\include/locale:372:5: sorry, unimplemented:
> function 'int std::__1::__asprintf_l(char**, _locale_t, const char*, ...)' can
> never be inlined because it uses variable argument lists
> M:\Development\Source\libc++\include/locale: In function 'int
> std::__1::__sprintf_l(char*, _locale_t, const char*, ...)':
It seems wrong to add always_inline attribute on something like this. I am not
aware
that LLVM would be inlining variadic function either
(even though it is doable in some trivial cases)
Honza
More information about the Gcc-bugs
mailing list