Path: utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!UUNET.UU.NET!mcvax!moncam!paul
From: mcvax!moncam!paul@UUNET.UU.NET (Paul Hudson)
Newsgroups: gnu.gcc.bug
Subject: profiling and register trashing on sun3
Message-ID: <8811291341.AA10285@marvin.moncam.uucp>
Date: 29 Nov 88 13:41:38 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 12

gcc doesn't seem to allow for mcount trashing registers like any other
function call. This only matters when profiling a function which returns
a structure on the sun 3, since then a1 contains the address to return
the struct to. I just made FUNCTION_PROFILER push a1, but there must be a neater way.


Paul Hudson 

Snail mail: Monotype ADG	Email:	...!ukc!acorn!moncam!paul
	    Science Park,		paul@moncam.co.uk
	    Milton Road,	"Sun Microsysytems:
	    Cambridge,		 The Company is Arrogant (TM)"
	    CB4 4FQ