brunner@bullhead.uucp (07/25/89)
Subject: Fix for profiling Index: /sys/sys/subr_mcount.c IBM/4.3 Description: Call counting does not reflect the new hc compiler Fix: Apply the attached patch. *** subr_mcount.c Thu Jul 13 10:56:15 1989 --- subr_mcount.c.fix Thu Jul 13 10:55:30 1989 *************** *** 127,132 **** --- 127,144 ---- asm(".data"); #endif #if defined(vax) || defined(ibm032) + + #ifdef ibm032 + mcount(frompcindex,selfpc) + unsigned short *frompcindex; + char *selfpc; + { + register struct tostruct *top; /* r9 => r3 */ + register struct tostruct *prevtop; /* r8 => r2 */ + register long toindex; /* r7 => r1 */ + #endif + + #ifdef vax mcount() { register char *selfpc; /* r11 => r5 */ *************** *** 134,140 **** register struct tostruct *top; /* r9 => r3 */ register struct tostruct *prevtop; /* r8 => r2 */ register long toindex; /* r7 => r1 */ - #ifdef vax static int s; #endif --- 146,151 ---- Eric Brunner uunet!ibmsupt!brunner