[PATCH] D71627: [Clang FE, SystemZ] Recognize -mrecord-mcount CL option.

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 09:40:04 PST 2019


nickdesaulniers added a comment.

This is regressing linux kernel builds for multiple architectures.  The linux kernel uses feature detection for compiler flags, basically invoking:

  $ clang -mrecord-mcount -target aarch64-linux-gnu -c -x c /dev/null

Because the target info isn't validated until code gen, the above returns `0`, which seems like the flag is supported, so it is used for further compilations which then do fail.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71627/new/

https://reviews.llvm.org/D71627





More information about the llvm-commits mailing list