summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-01-26 03:04:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-01-28 10:31:19 +0100
commit30adfbeb8843c28869cc6ee33d7c556721cb241a (patch)
tree941053b54d58f3dbdee7884deb3a967b3ddde656 /libc/sysdeps/linux
parent43ee648e8b2894cab7aba3339bd1ff405cb481ef (diff)
mips: PROF is never defined, kill dead code
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/mips/clone.S7
-rw-r--r--libc/sysdeps/linux/mips/getcontext.S7
-rw-r--r--libc/sysdeps/linux/mips/makecontext.S7
-rw-r--r--libc/sysdeps/linux/mips/setcontext.S7
-rw-r--r--libc/sysdeps/linux/mips/swapcontext.S7
-rw-r--r--libc/sysdeps/linux/mips/vfork.S15
6 files changed, 0 insertions, 50 deletions
diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S
index 8f7059d04..1b5a8f472 100644
--- a/libc/sysdeps/linux/mips/clone.S
+++ b/libc/sysdeps/linux/mips/clone.S
@@ -52,13 +52,6 @@ NESTED(clone,4*SZREG,sp)
#ifdef __PIC__
SAVE_GP (GPOFF)
#endif
-#ifdef PROF
- .set noat
- move $1,ra
- jal _mcount
- .set at
-#endif
-
/* Sanity check arguments. */
li v0,EINVAL
diff --git a/libc/sysdeps/linux/mips/getcontext.S b/libc/sysdeps/linux/mips/getcontext.S
index c4ad081b0..10d34d17c 100644
--- a/libc/sysdeps/linux/mips/getcontext.S
+++ b/libc/sysdeps/linux/mips/getcontext.S
@@ -63,13 +63,6 @@ NESTED (__getcontext, FRAMESZ, ra)
#endif /* ! __PIC__ */
-#ifdef PROF
- .set noat
- move AT, ra
- jal _mcount
- .set at
-#endif
-
/* Store a magic flag. */
li v1, 1
REG_S v1, (0 * SZREG + MCONTEXT_GREGS)(a0) /* zero */
diff --git a/libc/sysdeps/linux/mips/makecontext.S b/libc/sysdeps/linux/mips/makecontext.S
index 6427339a6..8b225ed18 100644
--- a/libc/sysdeps/linux/mips/makecontext.S
+++ b/libc/sysdeps/linux/mips/makecontext.S
@@ -69,13 +69,6 @@ NESTED (__makecontext, FRAMESZ, ra)
SAVE_GP (GPOFF)
#endif
-#ifdef PROF
- .set noat
- move AT, ra
- jal _mcount
- .set at
-#endif
-
/* Store args to be passed. */
REG_S a3, A3OFF(sp)
#if _MIPS_SIM != _ABIO32
diff --git a/libc/sysdeps/linux/mips/setcontext.S b/libc/sysdeps/linux/mips/setcontext.S
index d3cde0e50..e6c785a6e 100644
--- a/libc/sysdeps/linux/mips/setcontext.S
+++ b/libc/sysdeps/linux/mips/setcontext.S
@@ -62,13 +62,6 @@ NESTED (__setcontext, FRAMESZ, ra)
SAVE_GP (GPOFF)
#endif
-#ifdef PROF
- .set noat
- move AT, ra
- jal _mcount
- .set at
-#endif
-
/* Check for the magic flag. */
li v0, 1
REG_L v1, (0 * SZREG + MCONTEXT_GREGS)(a0) /* zero */
diff --git a/libc/sysdeps/linux/mips/swapcontext.S b/libc/sysdeps/linux/mips/swapcontext.S
index c7ac19b9f..90e762db3 100644
--- a/libc/sysdeps/linux/mips/swapcontext.S
+++ b/libc/sysdeps/linux/mips/swapcontext.S
@@ -72,13 +72,6 @@ NESTED (__swapcontext, FRAMESZ, ra)
#endif /* ! __PIC__ */
-#ifdef PROF
- .set noat
- move AT, ra
- jal _mcount
- .set at
-#endif
-
/* Store a magic flag. */
li v1, 1
REG_S v1, (0 * SZREG + MCONTEXT_GREGS)(a0) /* zero */
diff --git a/libc/sysdeps/linux/mips/vfork.S b/libc/sysdeps/linux/mips/vfork.S
index 9311504d2..494c34fd0 100644
--- a/libc/sysdeps/linux/mips/vfork.S
+++ b/libc/sysdeps/linux/mips/vfork.S
@@ -47,21 +47,6 @@ NESTED(__vfork,FRAMESZ,sp)
#ifdef __PIC__
SAVE_GP (GPOFF)
#endif
-#ifdef PROF
-# if (_MIPS_SIM != _ABIO32)
- PTR_S a5, GPOFF(sp)
-# endif
- .set noat
- move $1, ra
-# if (_MIPS_SIM == _ABIO32)
- subu sp,sp,8
-# endif
- jal _mcount
- .set at
-# if (_MIPS_SIM != _ABIO32)
- PTR_L a5, GPOFF(sp)
-# endif
-#endif
PTR_ADDU sp, FRAMESZ