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

Reply via email to