This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/nptl-sparc created. glibc-2.19-573-ge268224
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 12 Jun 2014 21:34:51 -0000
- Subject: GNU C Library master sources branch roland/nptl-sparc created. glibc-2.19-573-ge268224
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/nptl-sparc has been created
at e26822463f4c36746a25b9b25552c43c350862b8 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e26822463f4c36746a25b9b25552c43c350862b8
commit e26822463f4c36746a25b9b25552c43c350862b8
Author: Roland McGrath <roland@hack.frob.com>
Date: Thu Jun 12 14:33:59 2014 -0700
Move SPARC code out of nptl/sysdeps/sparc/.
diff --git a/ChangeLog b/ChangeLog
index c1e5241..4e0e179 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,40 @@
2014-06-12 Roland McGrath <roland@hack.frob.com>
+ * nptl/sysdeps/sparc/Makefile: Moved ...
+ * sysdeps/sparc/nptl/Makefile: ... here.
+ * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
+ * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
+ * nptl/sysdeps/sparc/tls.h: Moved ...
+ * sysdeps/sparc/nptl/tls.h: ... here.
+ * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
+ * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
+ * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
+ * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
+ * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
+ * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
+ * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
+ * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
+ * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
+ * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
+ * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
+ * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
+ * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
+ * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
+ * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
+ * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
+ * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
+ * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
+ Update #include.
+ * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
+ * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
+ Update #include.
+ * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
+ * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
+ Update #include.
+ * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
+ * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
+ Update #include.
+
* nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
* sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
diff --git a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c b/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c
deleted file mode 100644
index d27e550..0000000
--- a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c
+++ /dev/null
@@ -1 +0,0 @@
-#include <sparc64/pthread_spin_init.c>
diff --git a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S b/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S
deleted file mode 100644
index d33b375..0000000
--- a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S
+++ /dev/null
@@ -1 +0,0 @@
-#include <sparc64/pthread_spin_lock.S>
diff --git a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S b/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S
deleted file mode 100644
index af5b151..0000000
--- a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S
+++ /dev/null
@@ -1 +0,0 @@
-#include <sparc64/pthread_spin_trylock.S>
diff --git a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S b/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S
deleted file mode 100644
index c40d80f..0000000
--- a/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S
+++ /dev/null
@@ -1 +0,0 @@
-#include <sparc64/pthread_spin_unlock.S>
diff --git a/nptl/sysdeps/sparc/Makefile b/sysdeps/sparc/nptl/Makefile
similarity index 100%
rename from nptl/sysdeps/sparc/Makefile
rename to sysdeps/sparc/nptl/Makefile
diff --git a/nptl/sysdeps/sparc/tcb-offsets.sym b/sysdeps/sparc/nptl/tcb-offsets.sym
similarity index 100%
rename from nptl/sysdeps/sparc/tcb-offsets.sym
rename to sysdeps/sparc/nptl/tcb-offsets.sym
diff --git a/nptl/sysdeps/sparc/tls.h b/sysdeps/sparc/nptl/tls.h
similarity index 100%
rename from nptl/sysdeps/sparc/tls.h
rename to sysdeps/sparc/nptl/tls.h
diff --git a/nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S b/sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S
similarity index 100%
rename from nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
rename to sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S
diff --git a/nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S b/sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S
similarity index 100%
rename from nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S
rename to sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S
diff --git a/nptl/sysdeps/sparc/sparc32/pthreaddef.h b/sysdeps/sparc/sparc32/nptl/pthreaddef.h
similarity index 100%
rename from nptl/sysdeps/sparc/sparc32/pthreaddef.h
rename to sysdeps/sparc/sparc32/nptl/pthreaddef.h
diff --git a/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c
new file mode 100644
index 0000000..c8edcb0
--- /dev/null
+++ b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c
@@ -0,0 +1 @@
+#include <sysdeps/sparc/sparc64/nptl/pthread_spin_init.c>
diff --git a/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S
new file mode 100644
index 0000000..f2b898d
--- /dev/null
+++ b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S
@@ -0,0 +1 @@
+#include <sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S>
diff --git a/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S
new file mode 100644
index 0000000..b324906
--- /dev/null
+++ b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S
@@ -0,0 +1 @@
+#include <sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S>
diff --git a/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S
new file mode 100644
index 0000000..8c56ebe
--- /dev/null
+++ b/sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S
@@ -0,0 +1 @@
+#include <sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S>
diff --git a/nptl/sysdeps/sparc/sparc64/pthread_spin_init.c b/sysdeps/sparc/sparc64/nptl/pthread_spin_init.c
similarity index 100%
rename from nptl/sysdeps/sparc/sparc64/pthread_spin_init.c
rename to sysdeps/sparc/sparc64/nptl/pthread_spin_init.c
diff --git a/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S b/sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S
similarity index 100%
rename from nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
rename to sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S
diff --git a/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S b/sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S
similarity index 100%
rename from nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S
rename to sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S
diff --git a/nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S b/sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S
similarity index 100%
rename from nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S
rename to sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S
diff --git a/nptl/sysdeps/sparc/sparc64/pthreaddef.h b/sysdeps/sparc/sparc64/nptl/pthreaddef.h
similarity index 100%
rename from nptl/sysdeps/sparc/sparc64/pthreaddef.h
rename to sysdeps/sparc/sparc64/nptl/pthreaddef.h
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b0725f43245ce50cfafa7de41bb7aeb8e4c4cb00
commit b0725f43245ce50cfafa7de41bb7aeb8e4c4cb00
Author: Roland McGrath <roland@hack.frob.com>
Date: Thu Jun 12 14:33:43 2014 -0700
SPARC: Define TLS_DEFINE_INIT_TP
diff --git a/ChangeLog b/ChangeLog
index 0f3a99d..c1e5241 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-06-12 Roland McGrath <roland@hack.frob.com>
+ * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
+
* sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
* nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
diff --git a/nptl/sysdeps/sparc/tls.h b/nptl/sysdeps/sparc/tls.h
index 4a1dce7..5ea9355 100644
--- a/nptl/sysdeps/sparc/tls.h
+++ b/nptl/sysdeps/sparc/tls.h
@@ -110,6 +110,9 @@ register struct pthread *__thread_self __asm__("%g7");
# define TLS_INIT_TP(descr) \
(__thread_self = (__typeof (__thread_self)) (descr), NULL)
+/* Value passed to 'clone' for initialization of the thread register. */
+# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd)
+
/* Return the address of the dtv for the current thread. */
# define THREAD_DTV() \
(((tcbhead_t *) __thread_self)->dtv)
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b14368b8957a7be463a6b95e57f43a528fac4c8c
commit b14368b8957a7be463a6b95e57f43a528fac4c8c
Author: Roland McGrath <roland@hack.frob.com>
Date: Thu Jun 12 14:19:50 2014 -0700
SPARC: Convert fork.c to arch-fork.h
diff --git a/ChangeLog b/ChangeLog
index 02e8da3..0f3a99d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-06-12 Roland McGrath <roland@hack.frob.com>
+ * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
+ * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
+
* sysdeps/pthread/posix-timer.h: Include <list.h>.
(struct list_links): Type removed.
(struct thread_node, struct timer_node): Replace struct list_links
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/fork.c b/sysdeps/unix/sysv/linux/sparc/arch-fork.h
similarity index 88%
rename from nptl/sysdeps/unix/sysv/linux/sparc/fork.c
rename to sysdeps/unix/sysv/linux/sparc/arch-fork.h
index c7b90d6..fcb47d0 100644
--- a/nptl/sysdeps/unix/sysv/linux/sparc/fork.c
+++ b/sysdeps/unix/sysv/linux/sparc/arch-fork.h
@@ -1,4 +1,5 @@
-/* Copyright (C) 2003-2014 Free Software Foundation, Inc.
+/* ARCH_FORK definition for Linux fork implementation. SPARC version.
+ Copyright (C) 2003-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -24,5 +25,3 @@
#define ARCH_FORK() \
INLINE_CLONE_SYSCALL (CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, \
0, NULL, NULL, &THREAD_SELF->tid)
-
-#include "../fork.c"
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources