diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-04 19:29:04 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-12 20:10:05 +0300 |
commit | bb1435f3f575b5213eaf27434efa3971f51c01de (patch) | |
tree | 2a54cda4463b5d547afeeb46182756a9b0d5ed45 /io_uring/timeout.c | |
parent | 4f001a21080ff2e2f0e1c3692f5e119aedbb3bc1 (diff) | |
download | linux-bb1435f3f575b5213eaf27434efa3971f51c01de.tar.xz |
Kconfig.debug: add toolchain checks for DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT does not give explicit
-gdwarf-* flag. The actual DWARF version is up to the toolchain.
The combination of GCC and GAS works fine, and Clang with the integrated
assembler is good too.
The combination of Clang and GAS is tricky, but at least, the -g flag
works for Clang <=13, which defaults to DWARF v4.
Clang 14 switched its default to DWARF v5.
Now, CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT has the same issue as
addressed by commit 98cd6f521f10 ("Kconfig: allow explicit opt in to
DWARF v5").
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y for Clang >= 14 and
GAS < 2.35 produces a ton of errors like follows:
/tmp/main-c2741c.s: Assembler messages:
/tmp/main-c2741c.s:109: Error: junk at end of line, first unrecognized character is `"'
/tmp/main-c2741c.s:109: Error: file number less than one
Add 'depends on' to check toolchains.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'io_uring/timeout.c')
0 files changed, 0 insertions, 0 deletions