Date: Thu, 26 Dec 1996 16:50:49 +0200 (IST) From: Eli Zaretskii To: The Evertons 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 ----