This is the mail archive of the gcc-bugs@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]

Re: -pg vs regparm(2) on linux


On Sun, Mar 25, 2001 at 01:50:39AM -0800, Richard Henderson wrote:
> On Sun, Mar 25, 2001 at 01:43:39AM -0800, Doug Evans wrote:
> > If I wanted to, I'm guessing all I need to do is
> > hack FUNCTION_PROFILER and maybe write my own mcount.
> > Right?
> 
> Actually, there is some flag that says not to pass that
> silly data segment variable that mcount doesn't use, 
> which will avoid clobbering edx or whatever it is.

It's a target #define, NO_PROFILE_COUNTERS (and you have to adjust
your definition of FUNCTION_PROFILER to match).  Only in 3.0 and
mainline.  Some of the BSD people wanted to put it into 2.95.3 but
Bernd rejected it.

zw


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