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

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 11:11:20 PST 2019


jonpa added a comment.

In D71627#1793006 <https://reviews.llvm.org/D71627#1793006>, @nickdesaulniers wrote:

> 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.


I am not sure how this should be handled... Maybe you could open an issue on Bugzilla and add the right people on the CC list (I am not sure exactly who they would be...)?


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

https://reviews.llvm.org/D71627





More information about the llvm-commits mailing list