[cfe-commits] [PATCH] [libcxx][locale] disable inlining of variadic functions in GCC

Richard Smith richard at metafoo.co.uk
Thu Dec 27 11:30:29 PST 2012



================
Comment at: include/locale:357-361
@@ -356,3 +356,7 @@
 
+#if !defined(__clang__) && defined(__GNUC__)
+static
+#else
 _LIBCPP_ALWAYS_INLINE inline
+#endif
 int __sprintf_l(char *__s, locale_t __l, const char *__format, ...) {
----------------
Just unconditionally drop the _LIBCPP_ALWAYS_INLINE. Clang can't inline variadic functions either.


http://llvm-reviews.chandlerc.com/D241



More information about the cfe-commits mailing list