This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix mcount profiling on mips
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Jan 2002 13:16:51 -0500
- Subject: Re: [patch] Fix mcount profiling on mips
- References: <20020115095538.Y542@dr-evil.shagadelic.org>
On Tue, Jan 15, 2002 at 09:55:38AM -0800, Jason R Thorpe wrote:
> The following patch fixes mcount-based profiling on MIPS in the presence
> of abicalls (for PIC). It seems this problem/patch has been discussed for
> eons, but for whatever reason never committed.
>
> Bootstrapped on mipsel-unknown-netbsd.
>
> * config/mips/mips.h (FUNCTION_PROFILER): Make this work
> with abicalls.
<sigh> Thanks for following up on this. I hadn't realized it had
slipped through the cracks.
Note that it won't work anyway in the presence of nested
functions/static chains; around the same time I posted this I posted an
analysis, and again several months later. ASM_OUTPUT_REG_PUSH/POP are
to blame.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer