[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r6212 - in /fsf/trunk/libc: ./ include/ nptl/ nptl/sysdeps/unix/sysv/linux/sparc/sparc64/ sysdeps/sparc/ sysdeps/sparc/sparc...
- To: commits@xxxxxxxxxx
- Subject: [commits] r6212 - in /fsf/trunk/libc: ./ include/ nptl/ nptl/sysdeps/unix/sysv/linux/sparc/sparc64/ sysdeps/sparc/ sysdeps/sparc/sparc...
- From: eglibc@xxxxxxxxxx
- Date: Wed, 21 May 2008 07:06:06 -0000
Author: eglibc
Date: Wed May 21 00:06:04 2008
New Revision: 6212
Log:
Import glibc-mainline for 2008-05-21
Added:
fsf/trunk/libc/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (with props)
fsf/trunk/libc/sysdeps/sparc/machine-gmon.h
fsf/trunk/libc/sysdeps/sparc/sparc-mcount.S
fsf/trunk/libc/sysdeps/sparc/sparc64/backtrace.c
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/include/inline-hashtab.h
fsf/trunk/libc/nptl/ChangeLog
fsf/trunk/libc/sysdeps/sparc/Makefile
fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Wed May 21 00:06:04 2008
@@ -1,3 +1,24 @@
+2008-05-20 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * include/inline-hashtab.h (higher_prime_number): Fix type of mid
+ variable.
+
+2008-05-20 Jakub Jelinek <jakub@xxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
+ (FIRST_FRAME_POINTER): Define.
+
+2008-05-09 David S. Miller <davem@xxxxxxxxxxxxx>
+
+ * sysdeps/sparc/sparc64/backtrace.c: New file.
+
+2008-05-14 David S. Miller <davem@xxxxxxxxxxxxx>
+
+ * sysdeps/sparc/machine-gmon.h: New file.
+ * sysdeps/sparc/sparc-mcount.S: Likewise.
+ * sysdeps/sparc/Makefile: Add sparc-mcount target to
+ sysdep_routines in gmon directory.
+
2008-05-19 Jakub Jelinek <jakub@xxxxxxxxxx>
* elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
Modified: fsf/trunk/libc/include/inline-hashtab.h
==============================================================================
--- fsf/trunk/libc/include/inline-hashtab.h (original)
+++ fsf/trunk/libc/include/inline-hashtab.h Wed May 21 00:06:04 2008
@@ -74,7 +74,7 @@
while (low != high)
{
- const unsigned long *mid = low + (high - low) / 2;
+ const uint32_t *mid = low + (high - low) / 2;
if (n > *mid)
low = mid + 1;
else
Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Wed May 21 00:06:04 2008
@@ -1,3 +1,8 @@
+2008-05-20 Jakub Jelinek <jakub@xxxxxxxxxx>
+ David S. Miller <davem@xxxxxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
+
2008-05-10 Ulrich Drepper <drepper@xxxxxxxxxx>
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
Added: fsf/trunk/libc/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
==============================================================================
Binary file - no diff available.
Propchange: fsf/trunk/libc/nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
------------------------------------------------------------------------------
svn:mime-type = audio/x-669-mod
Modified: fsf/trunk/libc/sysdeps/sparc/Makefile
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/Makefile (original)
+++ fsf/trunk/libc/sysdeps/sparc/Makefile Wed May 21 00:06:04 2008
@@ -1,5 +1,9 @@
# The Sparc `long double' is a distinct type we support.
long-double-fcts = yes
+
+ifeq ($(subdir),gmon)
+sysdep_routines += sparc-mcount
+endif
ifeq ($(subdir),db2)
CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_SPARC_GCC=1
Added: fsf/trunk/libc/sysdeps/sparc/machine-gmon.h
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/machine-gmon.h (added)
+++ fsf/trunk/libc/sysdeps/sparc/machine-gmon.h Wed May 21 00:06:04 2008
@@ -1,0 +1,33 @@
+/* sparc-specific implementation of profiling support.
+ Copyright (C) 2008 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by David S. Miller <davem@xxxxxxxxxxxxx>, 2008
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#include <sysdep.h>
+
+/* We must not pollute the global namespace. */
+#define mcount_internal __mcount_internal
+
+extern void mcount_internal (u_long frompc, u_long selfpc) internal_function;
+
+#define _MCOUNT_DECL(frompc, selfpc) \
+void internal_function mcount_internal (u_long frompc, u_long selfpc)
+
+/* Define MCOUNT as empty since we have the implementation in another
+ file. */
+#define MCOUNT
Added: fsf/trunk/libc/sysdeps/sparc/sparc-mcount.S
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc-mcount.S (added)
+++ fsf/trunk/libc/sysdeps/sparc/sparc-mcount.S Wed May 21 00:06:04 2008
@@ -1,0 +1,29 @@
+/* sparc-specific implemetation of profiling support.
+ Copyright (C) 2008 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by David S. Miller <davem@xxxxxxxxxxxxx>, 2008.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#include <sysdep.h>
+
+ENTRY(_mcount)
+ mov %i7, %o0
+ ba __mcount_internal
+ mov %o7, %o1
+END(_mcount)
+
+weak_alias (_mcount, mcount)
Added: fsf/trunk/libc/sysdeps/sparc/sparc64/backtrace.c
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc64/backtrace.c (added)
+++ fsf/trunk/libc/sysdeps/sparc/sparc64/backtrace.c Wed May 21 00:06:04 2008
@@ -1,0 +1,58 @@
+/* Return backtrace of current program state.
+ Copyright (C) 2008 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by David S. Miller <davem@xxxxxxxxxxxxx>
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#include <execinfo.h>
+#include <stddef.h>
+#include <bp-checks.h>
+#include <sysdep.h>
+
+struct layout
+{
+ unsigned long locals[8];
+ unsigned long ins[6];
+ unsigned long next;
+ void *__unbounded return_address;
+};
+
+int
+__backtrace (void **array, int size)
+{
+ struct layout *current;
+ unsigned long fp;
+ int count;
+
+ asm volatile ("flushw");
+ asm volatile ("mov %%fp, %0" : "=r"(fp));
+ current = (struct layout *__unbounded) (fp + STACK_BIAS);
+ current = BOUNDED_1 (current);
+
+ for (count = 0; count < size; count++)
+ {
+ array[count] = current->return_address;
+ if (!current->next)
+ break;
+ current = (struct layout *__unbounded) (current->next + STACK_BIAS);
+ current = BOUNDED_1 (current);
+ }
+
+ return count;
+}
+weak_alias (__backtrace, backtrace)
+libc_hidden_def (__backtrace)
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h Wed May 21 00:06:04 2008
@@ -20,6 +20,9 @@
#define SIGCONTEXT struct sigcontext *
#define SIGCONTEXT_EXTRA_ARGS
#define GET_PC(__ctx) ((void *) ((__ctx)->si_regs.pc))
+#define FIRST_FRAME_POINTER \
+ ({ void *ret; \
+ asm volatile ("ta 3; add %%fp, 56, %0" : "=r" (ret)); ret; })
#define ADVANCE_STACK_FRAME(__next) \
((void *) (((unsigned *)(__next))+14))