svn commit: branches/uClibc-nptl: include libc/stdlib/malloc-standard libc etc...

Carmelo AMOROSO carmelo.amoroso at st.com
Tue Jul 29 14:43:51 UTC 2008


kraj at uclibc.org wrote:
> Author: kraj
> Date: 2008-07-11 15:22:24 -0700 (Fri, 11 Jul 2008)
> New Revision: 22805
> 
> Log:
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> Hush compiler for extern inline warnings by using __extern_inline macro, this also makes gcc 4.3 happy.
> 
> warning: C99 inline functions are not supported; using GNU89  
> warning: to disable this warning use -fgnu89-inline or the gnu
> 
> Also fix this other warning.
> 
> warning: missing braces around initializer                    
> warning: (near initialization for '_stdio_streams[0].__lock.__
> 
> 
> Modified:
>    branches/uClibc-nptl/include/ctype.h
>    branches/uClibc-nptl/libc/stdlib/malloc-standard/malloc.h
>    branches/uClibc-nptl/libc/sysdeps/linux/common/bits/cmathcalls.h
>    branches/uClibc-nptl/libc/sysdeps/linux/common/bits/uClibc_mutex.h
>    branches/uClibc-nptl/libc/sysdeps/linux/m68k/bits/mathinline.h
>    branches/uClibc-nptl/libpthread/nptl/sysdeps/pthread/bits/libc-lock.h
>    branches/uClibc-nptl/libpthread/nptl/sysdeps/pthread/pthread.h
> 
> 
> 
> 
[SNIP]
> Modified: branches/uClibc-nptl/libpthread/nptl/sysdeps/pthread/pthread.h
> ===================================================================
> --- branches/uClibc-nptl/libpthread/nptl/sysdeps/pthread/pthread.h	2008-07-11 22:20:59 UTC (rev 22804)
> +++ branches/uClibc-nptl/libpthread/nptl/sysdeps/pthread/pthread.h	2008-07-11 22:22:24 UTC (rev 22805)
> @@ -65,22 +65,22 @@
>  
>  /* Mutex initializers.  */
>  #define PTHREAD_MUTEX_INITIALIZER \
> -  { { 0, 0, 0, 0, 0, 0 } }
> +  { { 0, 0, 0, 0, 0, { 0 } } }
>  #ifdef __USE_GNU
>  # if __WORDSIZE == 64
>  #  define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
> -  { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0 } }
> +  { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, { 0 } } }
>  #  define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
> -  { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0 } }
> +  { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, { 0 } } }
>  #  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
> -  { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0 } }
> +  { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, { 0 } } }
>  # else
>  #  define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
> -  { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0 } }
> +  { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }
>  #  define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
> -  { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, 0 } }
> +  { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, { 0 } } }
>  #  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
> -  { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, 0 } }
> +  { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, { 0 } } }
>  # endif
>  #endif
>  

Hi Khem,
this change is producing new warnings on my side:

sh4-linux-uclibc-gcc -c libc/misc/utmp/utent.c -o 
libc/misc/utmp/utent.os -include ./include/libc-symbols.h -Wall 
-Wstrict-prototypes -fno-strict-aliasing -ml -m4 -fno-stack-protector 
-fno-builtin -nostdinc -I./include -I. -I./libc/sysdeps/linux/sh 
-DUCLIBC_INTERNAL -std=gnu99 -Os -funit-at-a-time 
-fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce 
-fstrict-aliasing -mprefergot -DNDEBUG -I./libpthread/nptl 
-I./libpthread/nptl/sysdeps/unix/sysv/linux/sh/sh4 
-I./libpthread/nptl/sysdeps/unix/sysv/linux/sh 
-I./libpthread/nptl/sysdeps/sh 
-I./libpthread/nptl/sysdeps/unix/sysv/linux 
-I./libpthread/nptl/sysdeps/pthread 
-I./libpthread/nptl/sysdeps/pthread/bits 
-I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/sh -I./ldso/include 
-I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/target/usr/include/ 
-I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/lib/gcc/sh4-linux-uclibc/4.2.1//include-fixed 
-I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/lib/gcc/sh4-linux-uclibc/4.2.1/include 
-DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DPIC -MT libc/misc/utmp/utent.os 
-MD -MP -MF libc/misc/utmp/.utent.os.dep

libc/misc/utmp/utent.c:38: warning: braces around scalar initializer
libc/misc/utmp/utent.c:38: warning: (near initialization for 
'utmplock.__data.__spins')

any idea ? I'm not sure it's related to use of futex.

Carmelo



More information about the uClibc-cvs mailing list