This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix mcount profiling on mips


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]