Re: [PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-03 Thread Nathan Chancellor
On Wed, Feb 03, 2021 at 04:52:39PM +0900, Masahiro Yamada wrote: > Sedat Dilek noticed duplicated debug flags passed when building C > files with CONFIG_DEBUG_INFO. > > I do not know much about his build environment, but yes, Kbuild > recurses to the top Makefile with some build targets. For examp

Re: [PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-03 Thread Mark Wielaard
Hi Masahiro, On Wed, 2021-02-03 at 16:52 +0900, Masahiro Yamada wrote: > With commit 121c5d08d53c ("kbuild: Only add -fno-var-tracking- > assignments > for old GCC versions") applied, DEBUG_CFLAGS is now reset only when > CONFIG_CC_IS_GCC=y. > > Fix it to reset DEBUG_CFLAGS also when using Clang.

Re: [PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-03 Thread Sedat Dilek
On Wed, Feb 3, 2021 at 9:39 AM Masahiro Yamada wrote: > > On Wed, Feb 3, 2021 at 5:32 PM Sedat Dilek wrote: > > > > On Wed, Feb 3, 2021 at 8:53 AM Masahiro Yamada wrote: > > > > > > Sedat Dilek noticed duplicated debug flags passed when building C > > > files with CONFIG_DEBUG_INFO. > > > > > >

Re: [PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-03 Thread Masahiro Yamada
On Wed, Feb 3, 2021 at 5:32 PM Sedat Dilek wrote: > > On Wed, Feb 3, 2021 at 8:53 AM Masahiro Yamada wrote: > > > > Sedat Dilek noticed duplicated debug flags passed when building C > > files with CONFIG_DEBUG_INFO. > > > > I do not know much about his build environment, but yes, Kbuild > > recur

Re: [PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-03 Thread Sedat Dilek
On Wed, Feb 3, 2021 at 8:53 AM Masahiro Yamada wrote: > > Sedat Dilek noticed duplicated debug flags passed when building C > files with CONFIG_DEBUG_INFO. > > I do not know much about his build environment, but yes, Kbuild > recurses to the top Makefile with some build targets. For example, > 'ma

Re: [PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-03 Thread Sedat Dilek
On Wed, Feb 3, 2021 at 8:53 AM Masahiro Yamada wrote: > > Sedat Dilek noticed duplicated debug flags passed when building C > files with CONFIG_DEBUG_INFO. > > I do not know much about his build environment, but yes, Kbuild > recurses to the top Makefile with some build targets. For example, > 'ma

[PATCH] kbuild: fix duplicated flags in DEBUG_CFLAGS

2021-02-02 Thread Masahiro Yamada
Sedat Dilek noticed duplicated debug flags passed when building C files with CONFIG_DEBUG_INFO. I do not know much about his build environment, but yes, Kbuild recurses to the top Makefile with some build targets. For example, 'make CC=clang bindeb-pkg' reproduces the issue. With commit 121c5d08d