changeset 6277:7a4aad0d34f3

Fix linux-x86::glibc (glibc-2.3) inline definitions This commit can success following commands. bin/gub linux-x86::hello bin/gub linux-x86::lilypond
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Sat, 15 Nov 2014 19:00:30 +0900
parents 4f348b2a350c
children 7d36942c8c77
files patches/glibc-2.3-misc-sys-cdefs-inline.patch
diffstat 1 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/patches/glibc-2.3-misc-sys-cdefs-inline.patch	Sat Nov 15 17:33:55 2014 +0900
+++ b/patches/glibc-2.3-misc-sys-cdefs-inline.patch	Sat Nov 15 19:00:30 2014 +0900
@@ -668,3 +668,47 @@
  __pthread_cleanup_routine (struct __pthread_cleanup_frame *__frame)
  {
    if (__frame->__do_it)
+--- a/locale/programs/charmap-kw.h	2001-07-06 14:28:41.000000000 +0900
++++ b/locale/programs/charmap-kw.h	2014-11-15 18:09:57.525279600 +0900
+@@ -95,6 +95,9 @@
+ 
+ #ifdef __GNUC__
+ __inline
++#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const struct keyword_t *
+ charmap_hash (register const char *str, register unsigned int len)
+--- a/locale/programs/locfile-kw.h	2001-07-06 14:28:41.000000000 +0900
++++ b/locale/programs/locfile-kw.h	2014-11-15 18:15:59.306819600 +0900
+@@ -95,6 +95,9 @@
+ 
+ #ifdef __GNUC__
+ __inline
++#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const struct keyword_t *
+ locfile_hash (register const char *str, register unsigned int len)
+--- a/nptl/sysdeps/unix/sysv/linux/aio_misc.h	2004-05-26 13:26:48.000000000 +0900
++++ b/nptl/sysdeps/unix/sysv/linux/aio_misc.h	2014-11-15 18:21:12.427297700 +0900
+@@ -26,7 +26,7 @@
+ # define aio_start_notify_thread __aio_start_notify_thread
+ # define aio_create_helper_thread __aio_create_helper_thread
+ 
+-extern inline void
++__extern_inline void
+ __aio_start_notify_thread (void)
+ {
+   sigset_t ss;
+@@ -35,7 +35,7 @@
+   INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);
+ }
+ 
+-extern inline int
++__extern_inline int
+ __aio_create_helper_thread (pthread_t *threadp, void *(*tf) (void *), void *arg)
+ {
+   pthread_attr_t attr;