]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 28 May 2004 21:19:35 +0000 (21:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 28 May 2004 21:19:35 +0000 (21:19 +0000)
2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
"altivec" to enable VMX instructions.
* sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
* sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
* sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.

13 files changed:
ChangeLog
sysdeps/powerpc/configure [new file with mode: 0755]
sysdeps/powerpc/configure.in [new file with mode: 0644]
sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
sysdeps/powerpc/powerpc64/__longjmp-common.S
sysdeps/powerpc/powerpc64/setjmp-common.S
sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S

index 78d1b53aa7e89a10f2702522b376ae17b7f6da4d..4d1c14340e583ad441981d178d1d029a9c072d78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
+
+       * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
+       "altivec" to enable VMX instructions.
+       * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
+       * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
+       * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
+
+
 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
diff --git a/sysdeps/powerpc/configure b/sysdeps/powerpc/configure
new file mode 100755 (executable)
index 0000000..07e3d09
--- /dev/null
@@ -0,0 +1,38 @@
+# This file is generated from configure.in by Autoconf.  DO NOT EDIT!
+ # Local configure fragment for sysdeps/powerpc.
+
+# Accept binutils which knows about ".machine".
+echo "$as_me:$LINENO: checking for .machine support" >&5
+echo $ECHO_N "checking for .machine support... $ECHO_C" >&6
+if test "${libc_cv_ppc_machine+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat > conftest.s <<\EOF
+       .machine "altivec"
+       blr
+EOF
+if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  libc_cv_ppc_machine=yes
+else
+  libc_cv_ppc_machine=no
+fi
+rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $libc_cv_ppc_machine" >&5
+echo "${ECHO_T}$libc_cv_ppc_machine" >&6
+if test $libc_cv_ppc_machine != yes; then
+  { { echo "$as_me:$LINENO: error:
+*** A binutils version which can handle
+***    .machine \"altivec\"
+*** is needed." >&5
+echo "$as_me: error:
+*** A binutils version which can handle
+***    .machine \"altivec\"
+*** is needed." >&2;}
+   { (exit 1); exit 1; }; }
+fi
diff --git a/sysdeps/powerpc/configure.in b/sysdeps/powerpc/configure.in
new file mode 100644 (file)
index 0000000..28cc859
--- /dev/null
@@ -0,0 +1,21 @@
+GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
+# Local configure fragment for sysdeps/powerpc.
+
+# Accept binutils which knows about ".machine".
+AC_CACHE_CHECK(for .machine support, libc_cv_ppc_machine, [dnl
+cat > conftest.s <<\EOF
+       .machine "altivec"
+       blr
+EOF
+if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
+  libc_cv_ppc_machine=yes
+else
+  libc_cv_ppc_machine=no
+fi
+rm -f conftest*])
+if test $libc_cv_ppc_machine != yes; then
+  AC_MSG_ERROR([
+*** A binutils version which can handle
+***    .machine "altivec"
+*** is needed.])
+fi
index dbb28aef2137ea6fa621d87c4c79e1ea84d5cc67..b61e127a99494c6ce396c687e0f08b75d3b6bae7 100644 (file)
@@ -28,6 +28,7 @@
 #include <bp-sym.h>
 #include <bp-asm.h>
 
+       .machine        "altivec"
 ENTRY (BP_SYM (__longjmp))
        CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
 #ifndef __NO_VMX__
index 6f63512e6179697ec8b2f2180762cf32f92a8f39..796d24f25cc2f847f8b192b8c92b0fa8963557e2 100644 (file)
@@ -28,7 +28,7 @@
 #include <bp-sym.h>
 #include <bp-asm.h>
 
-
+       .machine        "altivec"
 ENTRY (BP_SYM (__sigsetjmp))
        CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
 
index 0e2f0d580fea2937569133b69d5435742d601938..b6a2b79e553e9714bdd4a0e7a79d486ebebb9606 100644 (file)
@@ -40,6 +40,7 @@
        .section ".text"
 #endif
 
+       .machine        "altivec"
 ENTRY (BP_SYM (__longjmp))
        CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
 #ifndef __NO_VMX__
index 85c840348d86da77084141c7e6a324dd69a87285..99b181dfe419c558cf4399377ee5deaaee59b50d 100644 (file)
@@ -39,6 +39,7 @@
        .section ".text"
 #endif
 
+       .machine        "altivec"
 ENTRY (BP_SYM (__sigsetjmp))
        CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
        std  r1,(JB_GPR1*8)(3)
index b7a0baa45d222dfb90a20bcee8fdfb6cd829df80..447a18b2c78dbee8849f61d92da84f593bfd4c9b 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/ptrace.h>
 #include "ucontext_i.h"
 
+       .machine        "altivec"
 ENTRY(__getcontext)
        stw     r3,_FRAME_PARM_SAVE1(r1)
        addi    r3,r3,_UC_REG_SPACE+12
index fb9f1dc2ad8a01e208e3512005272bc2f0a59790..8d31326875b90eb264c7e851ca50b437f2a94b3d 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/ptrace.h>
 #include "ucontext_i.h"
 
+       .machine        "altivec"
 ENTRY(__setcontext)
        mflr    r0
        stwu    r1,-16(r1)
index bd6ced4e1ac382ab0a46f394279ff52cae5983eb..9d4c9bc1f64db9d4343177e5f9f1e749b14fe35f 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/ptrace.h>
 #include "ucontext_i.h"
 
+       .machine        "altivec"
 ENTRY(__swapcontext)
        /* Save the current context */
        stw     r3,_FRAME_PARM_SAVE1(r1)
index 6a0e1e559afbcf290eaec26e4b9db90ce8c95185..9deded79c7d704f6ecef05c42903a333b2e9182b 100644 (file)
@@ -165,6 +165,7 @@ compat_symbol (libc, __novec_getcontext, getcontext, GLIBC_2_3)
 #endif
        .section ".text"
 
+       .machine        "altivec"
 ENTRY(__getcontext)
 #ifdef __ASSUME_NEW_RT_SIGRETURN_SYSCALL
   std  r0,(SIGCONTEXT_GP_REGS+(PT_R0*8))(r3)
index b2675f09289b0419e49a344f3051f23e682fbd8d..a07a750ec76cf2909ff744ee4e911e8d6af128d8 100644 (file)
@@ -192,6 +192,7 @@ compat_symbol (libc, __novec_setcontext, setcontext, GLIBC_2_3)
 #endif
        .section ".text"
 
+       .machine        "altivec"
 ENTRY(__setcontext)
 #ifdef __ASSUME_NEW_RT_SIGRETURN_SYSCALL
   mflr  r0
index 660493984db678df58d617f2a3d608a3f48b1db7..0f978512d4a4a7c65e7996bbab6f438de73326f5 100644 (file)
@@ -287,6 +287,7 @@ compat_symbol (libc, __novec_swapcontext, swapcontext, GLIBC_2_3)
 #endif
        .section ".text"
 
+       .machine        "altivec"
 ENTRY(__swapcontext)
 #ifdef __ASSUME_NEW_RT_SIGRETURN_SYSCALL
   std  r0,(SIGCONTEXT_GP_REGS+(PT_R0*8))(r3)