]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bpabi.h (PROFILE_HOOK): New undef.
authorAndrew Stubbs <ams@codesourcery.com>
Thu, 6 Nov 2008 15:56:53 +0000 (15:56 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Thu, 6 Nov 2008 15:56:53 +0000 (15:56 +0000)
2008-11-06  Andrew Stubbs  <ams@codesourcery.com>

* config/arm/bpabi.h (PROFILE_HOOK): New undef.
(NO_PROFILE_COUNTERS): New define.

From-SVN: r141649

gcc/ChangeLog
gcc/config/arm/bpabi.h

index 3a8fe7013ec64955f6d72129971f652b4755cbe1..2c1a0542c2a49793c7c39b3e06addedaccda4d06 100644 (file)
@@ -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
index c8cdc3db087a59d5ef296352110adf514df8a0c4..bc716593c17abf3d77e98b5a5aeffde74dcfe8c4 100644 (file)
     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)                         \
 {                                                                      \
 
 #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