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] Allow -pg without frame pointer on x86


On Sun, 12 Oct 2008, Andi Kleen wrote:

> Also the tracer function has to get the caller information from the 
> stack now instead of through the frame pointer. To avoid incompatibility
> I use a new entry point "mcount_nofp" in this case.

If you add a new name it should be in the reserved namespace (e.g. 
__mcount_nofp).

> +@item -mcount-nofp
> +Don't force the frame counter with @option{-pg} function profiling.
> +Instead call a new mcount_nofp function.

@code{} around function name.

-- 
Joseph S. Myers
joseph@codesourcery.com


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