-Wduplicate-decl-specifier and LLVM "error in backend: Unsupported expression in static initializer" crash trying to enable CONFIG_USE_X86_SEG_SUPPORT #2013
Labels
[ARCH] x86_64
This bug impacts ARCH=x86_64
Compiler crash
This bug makes Clang crash, emitting a backtrace
Reported upstream
This bug was filed on LLVM’s issue tracker, Phabricator, or the kernel mailing list.
On top of current -tip, which has some fixes for
CONFIG_USE_X86_SEG_SUPPORT
, attempting to enable it for Clang withresults in
I think this should be resolved with
__typeof_unqual__
, which was recently added to LLVM by myself in llvm/llvm-project@cc308f6 (hence the190000
check above) and its use has been talked about on LKML. This diff shuts up the warning above (may or may not be actually correct)but I get a crash in
arch/x86/kernel/cpu/common.c
The crash occurs without the
__typeof_unqual__
diff ifKCFLAGS=-Wno-duplicate-decl-specifier
is passed, so it seems like the problems are unrelated.I'll try to reduce something out for the crash later.
The text was updated successfully, but these errors were encountered: