Skip to content

Commit

Permalink
[Driver] Report -Wunused-command-line-argument for unimplemented -mtune=
Browse files Browse the repository at this point in the history
Most common architectures (aarch64,riscv,s390x,x86,etc) have implemented -mtune=.
Don't ignore -mtune= in generic code.
  • Loading branch information
MaskRay committed Jul 22, 2022
1 parent 1f02ba4 commit 8f0c901
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clang/lib/Driver/ToolChains/Clang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5392,9 +5392,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,

TC.addClangTargetOptions(Args, CmdArgs, JA.getOffloadingDeviceKind());

// FIXME: Handle -mtune=.
(void)Args.hasArg(options::OPT_mtune_EQ);

if (Arg *A = Args.getLastArg(options::OPT_mcmodel_EQ)) {
StringRef CM = A->getValue();
if (CM == "small" || CM == "kernel" || CM == "medium" || CM == "large" ||
Expand Down

0 comments on commit 8f0c901

Please sign in to comment.