[cfe-dev] Behavior of -mcpu

Craig Topper via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 28 10:37:18 PST 2019


Which triple are you targeting. Whether or not -mcpu does anything is
specific to that.

~Craig


On Thu, Feb 28, 2019 at 10:17 AM David Greene via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> 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
> completely ignored.
>
> Thanks for any help!
>
>                             -David
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190228/20c09a79/attachment.html>


More information about the cfe-dev mailing list