aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2008-11-06 15:56:53 +0000
committerAndrew Stubbs <ams@gcc.gnu.org>2008-11-06 15:56:53 +0000
commitd53767cc2e1890b7e5e3be45f2f3c97801609110 (patch)
tree13f6206023e3360e59bdf6b8a6fdaca5ce3d30a4
parent044fed699914390645e0d05cd49d2fa26f9811aa (diff)
downloadgcc-d53767cc2e1890b7e5e3be45f2f3c97801609110.zip
gcc-d53767cc2e1890b7e5e3be45f2f3c97801609110.tar.gz
gcc-d53767cc2e1890b7e5e3be45f2f3c97801609110.tar.bz2
bpabi.h (PROFILE_HOOK): New undef.
2008-11-06 Andrew Stubbs <ams@codesourcery.com> * config/arm/bpabi.h (PROFILE_HOOK): New undef. (NO_PROFILE_COUNTERS): New define. From-SVN: r141649
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/bpabi.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3a8fe70..2c1a054 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-06 Andrew Stubbs <ams@codesourcery.com>
+
+ * config/arm/bpabi.h (PROFILE_HOOK): New undef.
+ (NO_PROFILE_COUNTERS): New define.
+
2008-11-06 David Edelsohn <edelsohn@gnu.org>
PR target/26397
diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h
index c8cdc3d..bc71659 100644
--- a/gcc/config/arm/bpabi.h
+++ b/gcc/config/arm/bpabi.h
@@ -155,6 +155,8 @@
Note that __gnu_mcount_nc will be entered with a misaligned stack.
This is OK because it uses a special calling convention anyway. */
+#undef NO_PROFILE_COUNTERS
+#define NO_PROFILE_COUNTERS 1
#undef ARM_FUNCTION_PROFILER
#define ARM_FUNCTION_PROFILER(STREAM, LABELNO) \
{ \
@@ -164,3 +166,7 @@
#undef SUBTARGET_FRAME_POINTER_REQUIRED
#define SUBTARGET_FRAME_POINTER_REQUIRED 0
+
+/* __gnu_mcount_nc restores the original LR value before returning. Ensure
+ that there is no unnecessary hook set up. */
+#undef PROFILE_HOOK