Hi rengolin,

Using currently documented "-fpu" option, I face an error:
$ clang --target=arm-none-eabi -mcpu=cortex-a9 -fpu=vfpv3-fp16 ~/tmp/hello.c
clang-3.7: error: unknown argument: '-fpu=vfpv3-fp16'

Though "-mfpu" option works fine. So "-fpu" seems like a typo in docs

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10209

Files:
  docs/CrossCompilation.rst

Index: docs/CrossCompilation.rst
===================================================================
--- docs/CrossCompilation.rst
+++ docs/CrossCompilation.rst
@@ -110,7 +110,7 @@
 
 Typical flags include:
  * ``-mcpu=<cpu-name>``, like x86-64, swift, cortex-a15
- * ``-fpu=<fpu-name>``, like SSE3, NEON, controlling the FP unit available
+ * ``-mfpu=<fpu-name>``, like SSE3, NEON, controlling the FP unit available
  * ``-mfloat-abi=<fabi>``, like soft, hard, controlling which registers
    to use for floating-point

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
Index: docs/CrossCompilation.rst
===================================================================
--- docs/CrossCompilation.rst
+++ docs/CrossCompilation.rst
@@ -110,7 +110,7 @@
 
 Typical flags include:
  * ``-mcpu=<cpu-name>``, like x86-64, swift, cortex-a15
- * ``-fpu=<fpu-name>``, like SSE3, NEON, controlling the FP unit available
+ * ``-mfpu=<fpu-name>``, like SSE3, NEON, controlling the FP unit available
  * ``-mfloat-abi=<fabi>``, like soft, hard, controlling which registers
    to use for floating-point
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to