[cfe-dev] Behavior of -mcpu
David Greene via cfe-dev
cfe-dev at lists.llvm.org
Thu Feb 28 10:17:30 PST 2019
When I pass -mcpu=<something> to clang, I get this:
clang-9: warning: argument unused during compilation: '-mcpu=<something>' [-Wunused-command-line-argume nt]
Worse, I do not get code generated for <something> but rather (I think)
for whatever the host architecture is.
Is this expected behavior? I know I can use -mtune and -march to
control things but I expected -mcpu to behave like it does in gcc, where
it implies -mtune and -march. I certainly did not expect it to be
Thanks for any help!
More information about the cfe-dev