delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/12/26/09:53:29

Date: Thu, 26 Dec 1996 16:50:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: The Evertons <evos AT m140 DOT aone DOT net DOT au>
cc: djgpp-workers AT delorie DOT com
Subject: Re: Problems with -pg switch in GCC
In-Reply-To: <199612250754.SAA00820@mail.mel.aone.net.au>
Message-ID: <Pine.SUN.3.91.961226163820.7059A-100000@is>
MIME-Version: 1.0

On Wed, 25 Dec 1996, The Evertons wrote:

> Whew! I'm not alone in experiencing this! But I'm not sure a patch is
> absolutely necessary as I've found a workaround.

Here's the necessary patch.  I've submitted it also to the DJGPP 
bug-tracking system (bug no. 126).

*** src/libc/crt0/mcount.c~0	Thu Dec 26 13:59:04 1996
--- src/libc/crt0/mcount.c	Thu Dec 26 13:56:06 1996
*************** void mcount(int _to)
*** 64,70 ****
    to = *((&_to)-1) - 12;
    ebp = *((&_to)-2); /* glean the caller's return address from the stack */
    from = ((int *)ebp)[1];
-   _mono_printf("from %08x  to %08x\r\n", from, to);
    if (*cache && ((*cache)->from == from) && ((*cache)->to == to))
    {
      /* cache paid off - works quickly */
--- 64,69 ----

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019