From rutgers!apple!usc!cs.utexas.edu!uunet!ibmpa!bullhead!brunner Wed Jul 26 14:43:18 EDT 1989
Article 975 of comp.sys.ibm.pc.rt:
Path: cmcl2!rutgers!apple!usc!cs.utexas.edu!uunet!ibmpa!bullhead!brunner
>From: brunner@bullhead.uucp
Newsgroups: comp.sys.ibm.pc.rt
Subject: Patch for /sys/sys/subr_mcount.c IBM/4.3
Summary: Fixes problem with inheritance (profiling)
Keywords: V1.6 profile
Message-ID: <1511@ibmpa.UUCP>
Date: 24 Jul 89 21:55:52 GMT
Sender: news@ibmpa.UUCP
Reply-To: brunner@ibmsupt.UUCP ()
Organization: IBM AWD Palo Alto
Lines: 45

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


