[glib/lrn/gnulib-printf] Change GL_INLINE to also include the always_inline attribute for GCC



commit d4d1488d16433e257f0eec01e40d5c6620f857f5
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Wed Jun 27 03:31:41 2018 +0000

    Change GL_INLINE to also include the always_inline attribute for GCC
    
    This ensures that gcc always inlines the funciton in question, regardless
    of current optimization level. Otherwise android cross-builder fails
    to link glib due to undefined references to xsum and other pure
    inline functions.

 glib/gnulib/gl_extern_inline/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gnulib/gl_extern_inline/meson.build b/glib/gnulib/gl_extern_inline/meson.build
index 1bdfe03a3..4bfedacb7 100644
--- a/glib/gnulib/gl_extern_inline/meson.build
+++ b/glib/gnulib/gl_extern_inline/meson.build
@@ -65,7 +65,7 @@ gl_extern_inline = '''
        && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
 # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
    /* __gnu_inline__ suppresses a GCC 4.2 diagnostic.  */
-#  define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
+#  define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) __attribute__ ((always_inline))
 # else
 #  define _GL_INLINE extern inline
 # endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]