Date: Mon, 23 Dec 1996 15:00:50 +0200 (IST) From: Eli Zaretskii To: Daniel Everton , djgpp-workers AT delorie DOT com, DJ Delorie , Charles Sandmann Subject: Re: Problems with -pg switch in GCC In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 23 Dec 1996, I wrote: > Yes, it happens to me too. Programs compiled with -pg crash. I wasn't > able until now to determine why. I've looked closer at mcount.c and I think I've found the reason: `mcount' calls `_mono_printf'. Since most systems don't have an additional mono display, they will crash if they run in V86 mode, where the mono video RAM is remapped by the memory manager. Is that call to `_mono_printf' there for a purpose, or is it just a left-over from some debugging session? When I ifdef'ed away that call, the profiled program worked as advertised on a system with a single color monitor.