Browse Source

mips: PROF is never defined, kill dead code

Waldemar Brodkorb 7 years ago
parent
commit
30adfbeb88

+ 0 - 7
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

+ 0 - 7
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 */

+ 0 - 7
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

+ 0 - 7
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 */

+ 0 - 7
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 */

+ 0 - 15
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