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 i386]: Add for win32 targets pre-prologue profiling feature


On 14/07/2010 11:20, Kai Tietz wrote:

> 	* config/i386/cygming.h (PROFILE_SUPPORT_BEFORE_PROLOGUE): New.
> 	(MCOUNT_NAME): Win32 specific version.

> +
> +/* Choose the correct profiler mcount name. For checking we are using the
> +   ix86_profile_before_prologue function as flag_profile_top is tri-state.  */
> +#undef MCOUNT_NAME
> +#define MCOUNT_NAME (ix86_profile_before_prologue () ? "_mcount_top" : "_mcount")
> +
>  #if ! defined (USE_MINGW64_LEADING_UNDERSCORES)
>  #undef USER_LABEL_PREFIX
>  #define USER_LABEL_PREFIX (TARGET_64BIT ? "" : "_")


  Shouldn't MCOUNT_NAME take USER_LABEL_PREFIX into account?

    cheers,
      DaveK


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