]> gcc.gnu.org Git - gcc.git/commitdiff
lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
authorPaul Brook <paul@codesourcery.com>
Sun, 25 Mar 2007 01:07:45 +0000 (01:07 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Sun, 25 Mar 2007 01:07:45 +0000 (01:07 +0000)
2007-03-24  Paul Brook  <paul@codesourcery.com>

* config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
* config/arm/linux-eabi.h: Remove legacy syscall hack.

From-SVN: r123192

gcc/ChangeLog
gcc/config/arm/lib1funcs.asm
gcc/config/arm/linux-eabi.h

index acb54aec2a381996a585e88678b958e257b1e264..a7247838a8869045368637759a7c5d88cebb8f00 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-24  Paul Brook  <paul@codesourcery.com>
+
+       * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
+       * config/arm/linux-eabi.h: Remove legacy syscall hack.
+
 2007-03-24  Richard Henderson  <rth@redhat.com>
 
        * config/ia64/constraints.md: New file.
index 4d455aa19176ef797a48369d8a021410f4a4fa44..3dce23742859b5d4b57fc3ea78ad90101d2936ae 100644 (file)
@@ -1062,10 +1062,9 @@ LSYM(Lover12):
 /* Constant taken from <asm/signal.h>.  */
 #define SIGFPE 8
 
-       .code   32
-       FUNC_START div0
+       ARM_FUNC_START div0
 
-       stmfd   sp!, {r1, lr}
+       do_push {r1, lr}
        mov     r0, #SIGFPE
        bl      SYM(raise) __PLT__
        RETLDM  r1
index 7215c0e94041ce54e31c8a0da07bd0eb42bd6677..fe78f0f534732084845df9d783ad572037106295 100644 (file)
@@ -65,8 +65,7 @@
 #undef LIBGCC_SPEC
 
 /* Clear the instruction cache from `beg' to `end'.  This makes an
-   inline system call to SYS_cacheflush.  It is modified to work with
-   both the original and EABI-only syscall interfaces.  */
+   inline system call to SYS_cacheflush.  */
 #undef CLEAR_INSN_CACHE
 #define CLEAR_INSN_CACHE(BEG, END)                                     \
 {                                                                      \
@@ -74,7 +73,7 @@
   register unsigned long _end __asm ("a2") = (unsigned long) (END);    \
   register unsigned long _flg __asm ("a3") = 0;                                \
   register unsigned long _scno __asm ("r7") = 0xf0002;                 \
-  __asm __volatile ("swi 0x9f0002              @ sys_cacheflush"       \
+  __asm __volatile ("swi 0             @ sys_cacheflush"               \
                    : "=r" (_beg)                                       \
                    : "0" (_beg), "r" (_end), "r" (_flg), "r" (_scno)); \
 }
This page took 0.089743 seconds and 5 git commands to generate.