On 06/07/2026 11:46, Arsen Arsenović wrote:
> gcc/ChangeLog:
>
> * config/aarch64/aarch64-acle-builtins.cc
> (function_resolver::infer_pointer_type): Use TYPE_UNQUALIFIED
> instead of zero literal.
> * config/arm/arm-mve-builtins.cc
> (function_resolver::infer_pointer_type): Use TYPE_UNQUALIFIED
> instead of zero literal.
>
> ---
> Hi ARM maintainers!
>
> The Linaro CI noticed that I missed some build errors in the ARM and
> aarch64 backends. This fixes them.
>
> I've tested building aarch64-elf target, it does build, and should be no
> change.
>
> gcc/config/aarch64/aarch64-acle-builtins.cc | 2 +-
> gcc/config/arm/arm-mve-builtins.cc | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/config/aarch64/aarch64-acle-builtins.cc
> b/gcc/config/aarch64/aarch64-acle-builtins.cc
> index 426316001ced..7bf729639082 100644
> --- a/gcc/config/aarch64/aarch64-acle-builtins.cc
> +++ b/gcc/config/aarch64/aarch64-acle-builtins.cc
> @@ -1265,7 +1265,7 @@ function_resolver::infer_pointer_type (unsigned int
> argno,
> {
> error_at (location, "passing %qT to argument %d of %qE, but %qT is not"
> " a valid SVE element type", actual, argno + 1, fndecl,
> - build_qualified_type (target, 0));
> + build_qualified_type (target, TYPE_UNQUALIFIED));
> return NUM_TYPE_SUFFIXES;
> }
> unsigned int bits = type_suffixes[type].element_bits;
> diff --git a/gcc/config/arm/arm-mve-builtins.cc
> b/gcc/config/arm/arm-mve-builtins.cc
> index 5a46deef8cfd..6bbec68daacc 100644
> --- a/gcc/config/arm/arm-mve-builtins.cc
> +++ b/gcc/config/arm/arm-mve-builtins.cc
> @@ -1271,7 +1271,7 @@ function_resolver::infer_pointer_type (unsigned int
> argno)
> {
> error_at (location, "passing %qT to argument %d of %qE, but %qT is not"
> " a valid MVE element type", actual, argno + 1, fndecl,
> - build_qualified_type (target, 0));
> + build_qualified_type (target, TYPE_UNQUALIFIED));
> return NUM_TYPE_SUFFIXES;
> }
>
OK.
R.