[PATCH] D48169: [mips] Add '-mcrc', '-mno-crc' options to enable/disable CRC ASE

Simon Dardis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 15 06:31:11 PDT 2018


sdardis added inline comments.


================
Comment at: include/clang/Driver/Options.td:2214
   HelpText<"Disable SVR4-style position-independent code (Mips only)">;
+def mno_crc : Flag<["-"], "mno-crc">, Group<m_mips_Features_Group>,
+  HelpText<"Disallow use of CRC instructions (Mips only)">;
----------------
atanasyan wrote:
> Does it make a sense to define this option as an alias to the `mnocrc` and allow to use both `-mno-crc` and `-mnocrc` for ARM and MIPS?
I thought about commenting on that. The problem there is that you then permitting clang to be more lax than binutils which inhibits compatibility between the two tools.


Repository:
  rC Clang

https://reviews.llvm.org/D48169





More information about the cfe-commits mailing list