* sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm

volatile.
	(inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
	inline_syscall5, inline_syscall6): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
	Likewise.

2002-09-29  Roland McGrath  <roland@redhat.com>

	* configure.in (libc_cv_ranlib_necessary check): Put the .o file in
	the archive, not the .c file.
	* configure: Regenerated.
This commit is contained in:
Roland McGrath 2002-09-29 11:32:03 +00:00
parent 5bbfc1ea70
commit 72d4c33d4c
6 changed files with 80 additions and 84 deletions

View File

@ -1,3 +1,20 @@
2002-09-29 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
volatile.
(inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
inline_syscall5, inline_syscall6): Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
Likewise.
2002-09-29 Roland McGrath <roland@redhat.com>
* configure.in (libc_cv_ranlib_necessary check): Put the .o file in
the archive, not the .c file.
* configure: Regenerated.
2002-09-29 Roland McGrath <roland@redhat.com> 2002-09-29 Roland McGrath <roland@redhat.com>
* configure: Regenerated after aclocal.m4 change. * configure: Regenerated after aclocal.m4 change.

45
configure vendored
View File

@ -3697,36 +3697,11 @@ if test "$libc_cv_gcc___thread" = yes; then
#define HAVE___THREAD 1 #define HAVE___THREAD 1
EOF EOF
echo $ac_n "checking whether __attribute__((tls_model())) is supported ""... $ac_c" 1>&6
echo "configure:3703: checking whether __attribute__((tls_model())) is supported " >&5
if eval "test \"`echo '$''{'libc_cv_gcc_attribute_tls_model'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<\EOF
extern __thread int a __attribute__ ((tls_model ("initial-exec")));
int foo (void) { return a; }
EOF
if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure:3711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
libc_cv_gcc_attribute_tls_model=yes
else
libc_cv_gcc_attribute_tls_model=no
fi
rm -f conftest*
fi
echo "$ac_t""$libc_cv_gcc_attribute_tls_model" 1>&6
if test "$libc_cv_gcc_attribute_tls_model" = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_ATTRIBUTE_TLS_MODEL 1
EOF
fi
fi fi
echo $ac_n "checking for libgd""... $ac_c" 1>&6 echo $ac_n "checking for libgd""... $ac_c" 1>&6
echo "configure:3730: checking for libgd" >&5 echo "configure:3705: checking for libgd" >&5
if test "$with_gd" != "no"; then if test "$with_gd" != "no"; then
old_CFLAGS="$CFLAGS" old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $libgd_include" CFLAGS="$CFLAGS $libgd_include"
@ -3735,14 +3710,14 @@ if test "$with_gd" != "no"; then
old_LIBS="$LIBS" old_LIBS="$LIBS"
LIBS="$LIBS -lgd -lpng -lz -lm" LIBS="$LIBS -lgd -lpng -lz -lm"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3739 "configure" #line 3714 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <gd.h> #include <gd.h>
int main() { int main() {
gdImagePng (0, 0) gdImagePng (0, 0)
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
LIBGD=yes LIBGD=yes
else else
@ -3762,7 +3737,7 @@ echo "$ac_t""$LIBGD" 1>&6
echo $ac_n "checking size of long double""... $ac_c" 1>&6 echo $ac_n "checking size of long double""... $ac_c" 1>&6
echo "configure:3766: checking size of long double" >&5 echo "configure:3741: checking size of long double" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -3770,7 +3745,7 @@ else
ac_cv_sizeof_long_double=0 ac_cv_sizeof_long_double=0
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3774 "configure" #line 3749 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
int main() int main()
@ -3781,7 +3756,7 @@ int main()
return(0); return(0);
} }
EOF EOF
if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_long_double=`cat conftestval` ac_cv_sizeof_long_double=`cat conftestval`
else else
@ -3859,7 +3834,7 @@ if test "$uname" = "sysdeps/generic"; then
fi fi
echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
echo "configure:3863: checking OS release for uname" >&5 echo "configure:3838: checking OS release for uname" >&5
if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -3881,7 +3856,7 @@ echo "$ac_t""$libc_cv_uname_release" 1>&6
uname_release="$libc_cv_uname_release" uname_release="$libc_cv_uname_release"
echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
echo "configure:3885: checking OS version for uname" >&5 echo "configure:3860: checking OS version for uname" >&5
if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -3910,7 +3885,7 @@ EOF
# Test for old glibc 2.0.x headers so that they can be removed properly # Test for old glibc 2.0.x headers so that they can be removed properly
# Search only in includedir. # Search only in includedir.
echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
echo "configure:3914: checking for old glibc 2.0.x headers" >&5 echo "configure:3889: checking for old glibc 2.0.x headers" >&5
if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
then then
old_glibc_headers=yes old_glibc_headers=yes
@ -3971,7 +3946,7 @@ if test $shared = default; then
fi fi
echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
echo "configure:3975: checking whether -fPIC is default" >&5 echo "configure:3950: checking whether -fPIC is default" >&5
if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else

View File

@ -651,7 +651,7 @@ char b;
void c(void) {} void c(void) {}
EOF EOF
$CC $CFLAGS -c conftest.c $CC $CFLAGS -c conftest.c
$AR cr conftest.a conftest.c $AR cr conftest.a conftest.o
cp conftest.a conftest2.a cp conftest.a conftest2.a
$RANLIB conftest.a $RANLIB conftest.a
if cmp -s conftest.a conftest2.a; then if cmp -s conftest.a conftest2.a; then
@ -1588,7 +1588,7 @@ fi
dnl Check whether the compiler supports the __thread keyword. dnl Check whether the compiler supports the __thread keyword.
AC_CACHE_CHECK([for __thread], libc_cv_gcc___thread, AC_CACHE_CHECK([for __thread], libc_cv_gcc___thread,
[cat > conftest.c <<EOF [cat > conftest.c <<\EOF
__thread int a = 42; __thread int a = 42;
EOF EOF
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AC_FD_CC]); then if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AC_FD_CC]); then

View File

@ -41,11 +41,11 @@
({ \ ({ \
long ret, err; \ long ret, err; \
LOADARGS_##nr(name, args); \ LOADARGS_##nr(name, args); \
__asm__ ("sc\n\t" \ __asm __volatile ("sc\n\t" \
"mfcr %1\n\t" \ "mfcr %1\n\t" \
: "=r" (r3), "=r" (err) \ : "=r" (r3), "=r" (err) \
: ASM_INPUT_##nr \ : ASM_INPUT_##nr \
: "cc", "memory"); \ : "cc", "memory"); \
ret = r3; \ ret = r3; \
if (err & 1 << 28) \ if (err & 1 << 28) \
{ \ { \

View File

@ -57,11 +57,11 @@
DECLARGS_##nr; \ DECLARGS_##nr; \
long ret, err; \ long ret, err; \
LOADARGS_##nr(name, args); \ LOADARGS_##nr(name, args); \
__asm__ ("sc\n\t" \ __asm __volatile ("sc\n\t" \
"mfcr %1\n\t" \ "mfcr %1\n\t" \
: "=r" (r3), "=r" (err) \ : "=r" (r3), "=r" (err) \
: ASM_INPUT_##nr \ : ASM_INPUT_##nr \
: "cc", "memory"); \ : "cc", "memory"); \
ret = r3; \ ret = r3; \
if (err & 1 << 28) \ if (err & 1 << 28) \
{ \ { \
@ -123,18 +123,20 @@
register long r8 __asm__ ("r8"); \ register long r8 __asm__ ("r8"); \
long ret, err; \ long ret, err; \
LOADARGS_##nr(name, args); \ LOADARGS_##nr(name, args); \
__asm__ ("sc\n\t" \ __asm __volatile ("sc\n\t" \
"mfcr %7\n\t" \ "mfcr %7\n\t" \
: "=r" (r0), "=r" (r3), "=r" (r4), "=r" (r5), \ : "=r" (r0), "=r" (r3), "=r" (r4), \
"=r" (r6), "=r" (r7), "=r" (r8), "=r" (err) \ "=r" (r5), "=r" (r6), "=r" (r7), \
: ASM_INPUT_##nr \ "=r" (r8), "=r" (err) \
: "r9", "r10", "r11", "r12", \ : ASM_INPUT_##nr \
"fr0", "fr1", "fr2", "fr3", \ : "r9", "r10", "r11", "r12", \
"fr4", "fr5", "fr6", "fr7", \ "fr0", "fr1", "fr2", "fr3", \
"fr8", "fr9", "fr10", "fr11", \ "fr4", "fr5", "fr6", "fr7", \
"fr12", "fr13", \ "fr8", "fr9", "fr10", "fr11", \
"ctr", "lr", \ "fr12", "fr13", \
"cr0", "cr1", "cr5", "cr6", "cr7", "memory"); \ "ctr", "lr", \
"cr0", "cr1", "cr5", "cr6", "cr7", \
"memory"); \
ret = r3; \ ret = r3; \
if (err & 1 << 28) \ if (err & 1 << 28) \
{ \ { \

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2000 Free Software Foundation, Inc. /* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2000. Contributed by Jakub Jelinek <jakub@redhat.com>, 2000.
@ -27,9 +27,9 @@
({ \ ({ \
register long __o0 __asm__ ("o0"); \ register long __o0 __asm__ ("o0"); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1) : \ "0" (__g1) : \
__SYSCALL_CLOBBERS); \ __SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })
@ -37,9 +37,9 @@
({ \ ({ \
register long __o0 __asm__ ("o0") = (long)(arg1); \ register long __o0 __asm__ ("o0") = (long)(arg1); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1), "1" (__o0) : \ "0" (__g1), "1" (__o0) : \
__SYSCALL_CLOBBERS); \ __SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })
@ -48,9 +48,9 @@
register long __o0 __asm__ ("o0") = (long)(arg1); \ register long __o0 __asm__ ("o0") = (long)(arg1); \
register long __o1 __asm__ ("o1") = (long)(arg2); \ register long __o1 __asm__ ("o1") = (long)(arg2); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1), "1" (__o0), "r" (__o1) : \ "0" (__g1), "1" (__o0), "r" (__o1) : \
__SYSCALL_CLOBBERS); \ __SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })
@ -60,9 +60,10 @@
register long __o1 __asm__ ("o1") = (long)(arg2); \ register long __o1 __asm__ ("o1") = (long)(arg2); \
register long __o2 __asm__ ("o2") = (long)(arg3); \ register long __o2 __asm__ ("o2") = (long)(arg3); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1), "1" (__o0), "r" (__o1), "r" (__o2) : \ "0" (__g1), "1" (__o0), "r" (__o1), \
__SYSCALL_CLOBBERS); \ "r" (__o2) : \
__SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })
@ -73,10 +74,10 @@
register long __o2 __asm__ ("o2") = (long)(arg3); \ register long __o2 __asm__ ("o2") = (long)(arg3); \
register long __o3 __asm__ ("o3") = (long)(arg4); \ register long __o3 __asm__ ("o3") = (long)(arg4); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1), "1" (__o0), "r" (__o1), "r" (__o2), \ "0" (__g1), "1" (__o0), "r" (__o1), \
"r" (__o3) : \ "r" (__o2), "r" (__o3) : \
__SYSCALL_CLOBBERS); \ __SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })
@ -88,10 +89,10 @@
register long __o3 __asm__ ("o3") = (long)(arg4); \ register long __o3 __asm__ ("o3") = (long)(arg4); \
register long __o4 __asm__ ("o4") = (long)(arg5); \ register long __o4 __asm__ ("o4") = (long)(arg5); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1), "1" (__o0), "r" (__o1), "r" (__o2), \ "0" (__g1), "1" (__o0), "r" (__o1), \
"r" (__o3), "r" (__o4) : \ "r" (__o2), "r" (__o3), "r" (__o4) : \
__SYSCALL_CLOBBERS); \ __SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })
@ -104,10 +105,11 @@
register long __o4 __asm__ ("o4") = (long)(arg5); \ register long __o4 __asm__ ("o4") = (long)(arg5); \
register long __o5 __asm__ ("o5") = (long)(arg6); \ register long __o5 __asm__ ("o5") = (long)(arg6); \
register long __g1 __asm__ ("g1") = __NR_##name; \ register long __g1 __asm__ ("g1") = __NR_##name; \
__asm__ (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \ __asm __volatile (__SYSCALL_STRING : "=r" (__g1), "=r" (__o0) : \
"0" (__g1), "1" (__o0), "r" (__o1), "r" (__o2), \ "0" (__g1), "1" (__o0), "r" (__o1), \
"r" (__o3), "r" (__o4), "r" (__o5) : \ "r" (__o2), "r" (__o3), "r" (__o4), \
__SYSCALL_CLOBBERS); \ "r" (__o5) : \
__SYSCALL_CLOBBERS); \
__o0; \ __o0; \
}) })