I've had a couple of conversations now in which the shortness of arm_sve.h was causing confusion, with people thinking that the types and intrinsics were missing. It seems worth adding a comment to explain what's going on.
Tested on aarch64-linux-gnu, pushed. Richard 2020-04-24 Richard Sandiford <richard.sandif...@arm.com> gcc/ * config/aarch64/arm_sve.h: Add a comment. --- gcc/config/aarch64/arm_sve.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config/aarch64/arm_sve.h b/gcc/config/aarch64/arm_sve.h index f2d2d0ce9aa..5cad9a4cb2e 100644 --- a/gcc/config/aarch64/arm_sve.h +++ b/gcc/config/aarch64/arm_sve.h @@ -32,6 +32,11 @@ typedef __fp16 float16_t; typedef float float32_t; typedef double float64_t; +/* NOTE: This implementation of arm_sve.h is intentionally short. It does + not define the SVE types and intrinsic functions directly in C and C++ + code, but instead uses the following pragma to tell GCC to insert the + necessary type and function definitions itself. The net effect is the + same, and the file is a complete implementation of arm_sve.h. */ #pragma GCC aarch64 "arm_sve.h" #endif