-pg vs regparm(2) on linux
Zack Weinberg
zackw@stanford.edu
Sun Mar 25 10:07:00 GMT 2001
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
More information about the Gcc-bugs
mailing list