https://gcc.gnu.org/g:53085a46e7f16245abbe23b8c36d641cc04947ca

commit r16-4355-g53085a46e7f16245abbe23b8c36d641cc04947ca
Author: Robin Dapp <[email protected]>
Date:   Thu Oct 9 22:47:26 2025 +0200

    arm: Fix support_vector_misalignment.
    
    In gcc-16-4314-g5e9eecc6686 I meant to remove all uses of TYPE
    in support_vector_misalignment but apparently forgot this one.
    Fixing by using the inner mode's size.
    
    gcc/ChangeLog:
    
            * config/arm/arm.cc (arm_builtin_support_vector_misalignment):
            Remove use of type.

Diff:
---
 gcc/config/arm/arm.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
index f074a429200b..da28d96298a4 100644
--- a/gcc/config/arm/arm.cc
+++ b/gcc/config/arm/arm.cc
@@ -30667,7 +30667,7 @@ arm_builtin_support_vector_misalignment (machine_mode 
mode,
 {
   if (TARGET_NEON && !BYTES_BIG_ENDIAN && unaligned_access)
     {
-      HOST_WIDE_INT align = TYPE_ALIGN_UNIT (type);
+      HOST_WIDE_INT align = GET_MODE_UNIT_SIZE (mode);
 
       if (is_gather_scatter)
        return true;

Reply via email to