[PATCH] Fix typo in cross-compilation docs: -fpu -> -mfpu

Vladimir Sukharev vladimir.sukharev at arm.com
Wed Jun 3 02:41:06 PDT 2015


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10209.27028.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150603/e5899a30/attachment.bin>


More information about the cfe-commits mailing list