[PATCH] [AArch64] Implement Clang CLI interface proposal about "-march".

Kevin Qin kevinqindev at gmail.com
Tue Jul 15 03:32:15 PDT 2014


Hi all,

There're 3 changes in this patch.
1. [no]neon is not allowed to pass through -march and -mcpu. An error message is added to suggest using [no]simd instead.
2. Remove warning message for -mcpu. As it would not be deprecated in short term.
3. Add more test to guarantee "where conflicting feature modifiers are specified, the right-most feature is used." 

To summarize, The updated patch is to follow the same behavior as gcc for -march/-mcpu /-mtune. The behavior is shown in this link: 
https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html .

Regards,
Kevin

http://reviews.llvm.org/D4346

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  lib/Basic/Targets.cpp
  lib/Driver/ToolChains.cpp
  lib/Driver/Tools.cpp
  test/CodeGen/arm_acle.c
  test/Driver/aarch64-cpus.c
  test/Driver/aarch64-mfpu.c
  test/Preprocessor/aarch64-target-features.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4346.11432.patch
Type: text/x-patch
Size: 25293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140715/246cf7c4/attachment.bin>


More information about the cfe-commits mailing list