[PATCH] D65108: Reland "driver: Don't warn about assembler flags being unused when not assembling"

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 12:36:44 PDT 2019


thakis created this revision.
thakis added a reviewer: rnk.

This relands r365703 (and r365714), originally reviewed at
https://reviews.llvm.org/D64527.

The problem with the old approach was that clang would now warn about
-Wa flags that the integrated assembler didn't understand even when
-fno-integrated-as was used.

Just checking for that before calling CollectArgsForIntegratedAssembler
still makes clang warn about unused flags with -fno-integrated-as, which
isn't desired either.

Instead, omit just the "unknown flag" diag if the integrated assembler
isn't in use.

One of the new test cases is by nickdesaulniers from
https://reviews.llvm.org/D64655.


https://reviews.llvm.org/D65108

Files:
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/Driver/as-options.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65108.211168.patch
Type: text/x-patch
Size: 7828 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190722/bcdb24df/attachment-0001.bin>


More information about the cfe-commits mailing list