This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, release/2.11/master, updated. glibc-2.11.3-5-g7e0667e
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 10 Mar 2011 00:35:01 -0000
- Subject: Community source repository for glibc add-on ports branch, release/2.11/master, updated. glibc-2.11.3-5-g7e0667e
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 "Community source repository for glibc add-on ports".
The branch, release/2.11/master has been updated
via 7e0667e5e082e880bc7ac5c5bcda1e657328e1cc (commit)
from d4f26b20c1db3e0ecbd9626cc9b8d9fe3207a19d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=7e0667e5e082e880bc7ac5c5bcda1e657328e1cc
commit 7e0667e5e082e880bc7ac5c5bcda1e657328e1cc
Author: Manjunath Matti <manjunath81@gmail.com>
Date: Wed Feb 16 17:30:13 2011 +0000
Fix profiling libc for ARM EABI to use __gnu_mcount_nc interface when available.
(cherry picked from commit 94fd527b67373373ebf6364d8b42c1d9fac1ea1c)
diff --git a/ChangeLog.arm b/ChangeLog.arm
index 1a4b99d..f6359a9 100644
--- a/ChangeLog.arm
+++ b/ChangeLog.arm
@@ -1,3 +1,10 @@
+2011-02-16 Manjunath Matti <manjunath81@gmail.com>
+
+ * sysdeps/arm/sysdep.h (CALL_MCOUNT): Use __gnu_mcount_nc
+ interface for EABI with GCC 4.4 or later.
+ (mcount): Define to __gnu_mcount_nc for EABI with GCC 4.4 or
+ later.
+
2011-01-25 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_HUGEPAGE,
diff --git a/sysdeps/arm/sysdep.h b/sysdeps/arm/sysdep.h
index 442d3a1..63bcbfc 100644
--- a/sysdeps/arm/sysdep.h
+++ b/sysdeps/arm/sysdep.h
@@ -18,6 +18,7 @@
02111-1307 USA. */
#include <sysdeps/generic/sysdep.h>
+#include <features.h>
#if (!defined (__ARM_ARCH_2__) && !defined (__ARM_ARCH_3__) \
&& !defined (__ARM_ARCH_3M__) && !defined (__ARM_ARCH_4__))
@@ -89,10 +90,16 @@
/* If compiled for profiling, call `mcount' at the start of each function. */
#ifdef PROF
+#if __GNUC_PREREQ(4,4) && defined(__ARM_EABI__)
+#define CALL_MCOUNT \
+ str lr,[sp, #-4]! ; \
+ bl PLTJMP(mcount) ;
+#else
#define CALL_MCOUNT \
str lr,[sp, #-4]! ; \
bl PLTJMP(mcount) ; \
ldr lr, [sp], #4 ;
+#endif
#else
#define CALL_MCOUNT /* Do nothing. */
#endif
@@ -102,8 +109,12 @@
on this system, the asm identifier `syscall_error' intrudes on the
C name space. Make sure we use an innocuous name. */
#define syscall_error __syscall_error
+#if __GNUC_PREREQ(4,4) && defined(__ARM_EABI__)
+#define mcount __gnu_mcount_nc
+#else
#define mcount _mcount
#endif
+#endif
#if defined(__ARM_EABI__)
/* Tag_ABI_align8_preserved: This code preserves 8-byte
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.arm | 7 +++++++
sysdeps/arm/sysdep.h | 11 +++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports