From 30adfbeb8843c28869cc6ee33d7c556721cb241a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 26 Jan 2017 03:04:22 +0100 Subject: mips: PROF is never defined, kill dead code --- libc/sysdeps/linux/mips/clone.S | 7 ------- libc/sysdeps/linux/mips/getcontext.S | 7 ------- libc/sysdeps/linux/mips/makecontext.S | 7 ------- libc/sysdeps/linux/mips/setcontext.S | 7 ------- libc/sysdeps/linux/mips/swapcontext.S | 7 ------- libc/sysdeps/linux/mips/vfork.S | 15 --------------- 6 files changed, 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 @@ -46,21 +46,6 @@ NESTED(__vfork,FRAMESZ,sp) SETUP_GP64 (a5, __vfork) #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 -- cgit v1.2.3