Hi all,

this is to fix in GCC 10 the incomplete backport done by 1aabb312f of
what at the time I fixed on master with dd019ef07.

Regtested and bootstraped on arm-linux-gnueabihf.

I guess should be under the obvious rule but prefer to ask, okay for
gcc-10?

Thanks

  Andrea

>From a795f7aaf87fa3610bd690fcfb567e7150fe7570 Mon Sep 17 00:00:00 2001
From: Andrea Corallo <andrea.cora...@arm.com>
Date: Wed, 27 May 2020 17:43:48 +0100
Subject: [PATCH] arm: Fix unwanted fall-through in arm.c

Backporting from mainline.

gcc/ChangeLog

2020-05-28  Andrea Corallo  <andrea.cora...@arm.com>

        * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
        fall-through.
---
 gcc/config/arm/arm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 97f5e12ad68..35e6aa27c11 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -13375,6 +13375,7 @@ mve_vector_mem_operand (machine_mode mode, rtx op, bool 
strict)
            if (val % 4 == 0 && val >= 0 && val <= 1020)
              return ((reg_no < LAST_ARM_REGNUM && reg_no != SP_REGNUM)
                      || (!strict && reg_no >= FIRST_PSEUDO_REGISTER));
+           return FALSE;
          default:
            return FALSE;
        }
-- 
2.20.1

Reply via email to