Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1628914

Re: [PATCH] kbuild: avoid conflict between -ffunction-sections and -pg on gcc-4.7

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject Re: [PATCH] kbuild: avoid conflict between -ffunction-sections and -pg on gcc-4.7
Date 2017-04-23 09:00 +0200
Message-ID <tzjEZ-53L-7@gated-at.bofh.it> (permalink)
References <tw2Km-64H-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2017-04-14 15:17 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> Arnd Bergmann reported:
>   "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]
>   "
>
> Since commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to
> cc-option to support clang"), warnings are treated as errors in
> cc-option checks.  CC_FLAGS_FTRACE is blindly added to KBUILD_CFLAGS,
> so $(call cc-option,-ffunction-sections,) should be moved below it
> in order to detect the conflict between the two options.
>
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Applied to linux-kbuild/kbuild.


-- 
Best Regards
Masahiro Yamada

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] kbuild: avoid conflict between -ffunction-sections and -pg on gcc-4.7 Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-14 08:20 +0200
  Re: [PATCH] kbuild: avoid conflict between -ffunction-sections and  -pg on gcc-4.7 Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-18 17:40 +0200
  Re: [PATCH] kbuild: avoid conflict between -ffunction-sections and  -pg on gcc-4.7 Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-23 09:00 +0200

csiph-web