lkml.org 
[lkml]   [2009]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v7 17/17] tracing: make function graph tracer work with -mmcount-ra-address
From
Date
Hi,

On Mon, 2009-11-09 at 14:34 -0800, David Daney wrote:
> Wu Zhangjin wrote:
> [...]
> > + cflags-y += $(call cc-option, -mmcount-ra-address)
> [...]
> > +#if (__GNUC__ <= 4 && __GNUC_MINOR__ < 5)
>
>
>
> Sprinkling the code with these #if clauses is ugly and prone to breakage
> I think.
>
> The Makefile part is testing for the same feature.
>
> We do a very similar thing with -msym32, and KBUILD_SYM32. Perhaps you
> could rework this patch in a similar manner and test for
> KBUILD_MCOUNT_RA_ADDRESS instead of the '(__GNUC__ <= 4 &&
> __GNUC_MINOR__ < 5)'
>

This is really ugly ;)

KBUILD_MCOUNT_RA_ADDRESS is a wonderful idea, thanks!

Regards,
Wu Zhangjin



\
 
 \ /
  Last update: 2009-11-10 03:45    [W:0.055 / U:3.808 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site