public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Consult] blackfin: About one building break issue for STACKTRACE
@ 2015-04-16 15:21 Chen Gang
  2015-04-17  3:02 ` [Adi-buildroot-devel] " Zhang, Sonic
  0 siblings, 1 reply; 7+ messages in thread
From: Chen Gang @ 2015-04-16 15:21 UTC (permalink / raw)
  To: realmz6@gmail.com, Richard Weinberger
  Cc: adi-buildroot-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org

Hello Maintainers:

I want to consult one building issue about blackfin, the related issue
is:

    CC      arch/blackfin/kernel/stacktrace.o
  arch/blackfin/kernel/stacktrace.c: In function 'save_stack_trace':
  arch/blackfin/kernel/stacktrace.c:23:6: error: frame pointer required, but reserved
   void save_stack_trace(struct stack_trace *trace)
        ^
  arch/blackfin/kernel/stacktrace.c:13:24: note: for 'current_frame_pointer'
   register unsigned long current_frame_pointer asm("FP");
                          ^

For me:

 - Originally, I treated it as gcc's issue, but after think of, for me,
   gcc is OK:

    "-fomit-frame-pointer" is needed by extern "FP" pointer.

    "-fomit-frame-pointer" is against "-pg" (they can not be together).

 - For kernel:

    STACKTRACE needs "-fomit-frame-pointer", and FUNCTION_TRACER will
    enable "-pg",

    FUNCTION_TRACER and STACKTRACE are related.

    The related commit: "1c873be Blackfin: initial support for ftrace"
    (the commit time point is Jun 9 2009).

 - After this related commit, it never can pass building by upstream
   blackfin gcc5:

    make defconfig && make menuconfig

    enable FUNCTION_TRACER (which also enable STACKTRACE)

    make (which will cause building break)

So I want to consult:

 - Is it OK to use upstream gcc5 for blackfin? (or which gcc version is
   suitable for building blackfin Linux kernel?)

 - Did the original commit pass building ? (e.g. by one of old gcc
   version).

 - How to fix this issue, next?


Welcome any members ideas, suggestions and completions.

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-04 23:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 15:21 [Consult] blackfin: About one building break issue for STACKTRACE Chen Gang
2015-04-17  3:02 ` [Adi-buildroot-devel] " Zhang, Sonic
2015-04-17 14:02   ` Chen Gang
2015-04-17 22:20     ` Chen Gang
2015-04-19  4:58       ` Chen Gang
     [not found]   ` <55311283.1050404@hotmail.com>
2015-09-03  3:05     ` Chen Gang
2015-09-04 23:39       ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox