================
@@ -399,7 +399,14 @@ void AArch64TargetInfo::getTargetDefines(const LangOptions 
&Opts,
   Builder.defineMacro("__AARCH64_CMODEL_" + CodeModel + "__");
 
   // ACLE predefines. Many can only have one possible value on v8 AArch64.
-  Builder.defineMacro("__ARM_ACLE", "200");
+  Builder.defineMacro("__ARM_ACLE_VERSION(year, quarter, patch)",
+                      "100 * (year) + 10 * (quarter) + (patch)");
----------------
DanielKristofKiss wrote:

I'd add a surrounding parentheses to avoid precedence issues with the macro. 
```suggestion
                      "(100 * (year) + 10 * (quarter) + (patch))");
```

https://github.com/llvm/llvm-project/pull/108857
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to