]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache unconditional.
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 13 May 2005 21:56:58 +0000 (21:56 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 13 May 2005 21:56:58 +0000 (21:56 +0000)
* arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
unconditional.

From-SVN: r99680

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

index 24513c8eb8c8a636ff55ebea3ddf2700bcb0cbce..247e492445787937482a23bfab62016cd5cbf4c8 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
+
+       * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
+       unconditional.
+
 2005-05-13  Josh Conner  <jconner@apple.com>
 
        * config/arm/arm.c (arm_size_return_regs): New.
index b75d89a64fe66451f1151b5a8e38c6cf33375a13..7b563469ab3d3ff45d614ad4a31e9c430765d5af 100644 (file)
@@ -1776,15 +1776,6 @@ typedef struct
 /* Alignment required for a trampoline in bits.  */
 #define TRAMPOLINE_ALIGNMENT  32
 
-/* Call __clear_cache after setting up the trampoline unless this is a nop.  */
-#ifdef CLEAR_INSN_CACHE
-#define ARM_EMIT_TRAMPOLINE_CACHE_CLEAR(TRAMP)                         \
-  emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__clear_cache"),      \
-                    0, VOIDmode, 2, TRAMP, Pmode,                      \
-                    plus_constant (TRAMP, TRAMPOLINE_SIZE), Pmode);
-#else
-#define ARM_EMIT_TRAMPOLINE_CACHE_CLEAR(TRAMP) do {} while (0)
-#endif
 
 /* Emit RTL insns to initialize the variable parts of a trampoline.
    FNADDR is an RTX for the address of the function's pure code.
@@ -1800,7 +1791,9 @@ typedef struct
                               plus_constant (TRAMP,                    \
                                              TARGET_ARM ? 12 : 20)),   \
                  FNADDR);                                              \
-  ARM_EMIT_TRAMPOLINE_CACHE_CLEAR (TRAMP);                             \
+  emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__clear_cache"),      \
+                    0, VOIDmode, 2, TRAMP, Pmode,                      \
+                    plus_constant (TRAMP, TRAMPOLINE_SIZE), Pmode);    \
 }
 #endif