__ARM_NEON not defined for cross compiling #23310
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
invalid
Resolved as invalid, i.e. not a bug
Extended Description
It seems that
__ARM_NEON
is not defined by clang even when-mfpu=neon
and the correct target is used. This generate error when including<arm_neon.h>
but if I define__ARM_NEON
manually, the program compiles and generate correct code.Native compiling on ARM seems to be fine.
Comparing to arm-linux-gnueabihf-gcc and native ARM clang, it seems that at least
__ARM_NEON__
is also missing.Cross compiling clang
GCC
Native clang
Example code (taken from stackoverflow)
A single line
#include <arm_neon.h>
is also enough to trigger the issue.System:
clang 3.6.0 (and 3.5.0) from official ArchLinux x86_64 repo.
The text was updated successfully, but these errors were encountered: