Re: [PATCH] kbuild: disable -ffunction-sections on gcc-4.7 with ftrace

2016-12-18 Thread Namhyung Kim
Hi, On Fri, Dec 16, 2016 at 6:24 PM, Arnd Bergmann wrote: > When ftrace is enabled and we build with gcc-4.7 or older, we > get a warning for each file on architectures that select > CONFIG_LD_DEAD_CODE_DATA_ELIMINATION: > > warning: -ffunction-sections disabled; it makes profiling impossible [en

[PATCH] kbuild: disable -ffunction-sections on gcc-4.7 with ftrace

2016-12-16 Thread Arnd Bergmann
When ftrace is enabled and we build with gcc-4.7 or older, we get a warning for each file on architectures that select CONFIG_LD_DEAD_CODE_DATA_ELIMINATION: warning: -ffunction-sections disabled; it makes profiling impossible [enabled by default] This turns off function sections in that specific