[llvm-bugs] [Bug 31358] New: Clang should support -march=armv7ve for gcc compatibility
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 12 16:19:27 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31358
Bug ID: 31358
Summary: Clang should support -march=armv7ve for gcc
compatibility
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: manojgupta at google.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
gcc supports -march=armv7ve option for arm but this is not supported by clang.
Armv7ve description:
armv7ve add supports for ARMv7 virtualization extension, including instructions
such as integer divide instructions.
This makes build scripts difficult to port to clang from gcc.
Example:
$ cat foo.c
int divide(int b, int c) {
return b/c;
}
$ gcc -march=armv7ve -c foo.c # This works as expected
Compiling with clang fails.
$ clang -march=armv7ve -c foo.cc
clang-4.0: error: the clang compiler does not support '-march=armv7ve'
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161213/44f354c8/attachment.html>
More information about the llvm-bugs
mailing list