Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Kconfig.debug: simplify the dependency of DEBUG_INFO_DWARF4/5

Commit c0a5c81ca9be ("Kconfig.debug: drop GCC 5+ version check for
DWARF5") could have cleaned up the code a bit more.

"CC_IS_CLANG &&" is unneeded. No functional change is intended.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>

+2 -2
+2 -2
lib/Kconfig.debug
··· 264 264 config DEBUG_INFO_DWARF4 265 265 bool "Generate DWARF Version 4 debuginfo" 266 266 select DEBUG_INFO 267 - depends on !CC_IS_CLANG || (CC_IS_CLANG && (AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502))) 267 + depends on !CC_IS_CLANG || AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502) 268 268 help 269 269 Generate DWARF v4 debug info. This requires gcc 4.5+, binutils 2.35.2 270 270 if using clang without clang's integrated assembler, and gdb 7.0+. ··· 276 276 config DEBUG_INFO_DWARF5 277 277 bool "Generate DWARF Version 5 debuginfo" 278 278 select DEBUG_INFO 279 - depends on !CC_IS_CLANG || (CC_IS_CLANG && (AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502))) 279 + depends on !CC_IS_CLANG || AS_IS_LLVM || (AS_IS_GNU && AS_VERSION >= 23502) 280 280 help 281 281 Generate DWARF v5 debug info. Requires binutils 2.35.2, gcc 5.0+ (gcc 282 282 5.0+ accepts the -gdwarf-5 flag but only had partial support for some