[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAR5nc=jsG+6Q59uHfu_W-qV4q2k5fx=AdduUV283OkY3g@mail.gmail.com>
Date: Sun, 23 Apr 2017 15:53:44 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Cc: Arnd Bergmann <arnd@...db.de>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <mmarek@...e.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kbuild: avoid conflict between -ffunction-sections and
-pg on gcc-4.7
2017-04-14 15:17 GMT+09:00 Masahiro Yamada <yamada.masahiro@...ionext.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@...db.de>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Applied to linux-kbuild/kbuild.
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists