public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] arm: [MVE intrinsics] Add default clause to full_width_access::memory_vector_mode
@ 2023-11-23 15:56 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2023-11-23 15:56 UTC (permalink / raw)
  To: gcc-patches; +Cc: Christophe Lyon

My recent commit 0c2037d9d93a8f768cb11698ff794278246bb31f added a
switch statement lacking a default clause, leading to warnings or
errors when building with --enable-werror-always.

Fix by adding an empty default.

Committed as obvious.

2023-11-23  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/
	* config/arm/arm-mve-builtins-functions.h
	(full_width_access::memory_vector_mode): Add default clause.
---
 gcc/config/arm/arm-mve-builtins-functions.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/arm/arm-mve-builtins-functions.h b/gcc/config/arm/arm-mve-builtins-functions.h
index 6d234a2dd7c..1c93e6436b5 100644
--- a/gcc/config/arm/arm-mve-builtins-functions.h
+++ b/gcc/config/arm/arm-mve-builtins-functions.h
@@ -1013,6 +1013,8 @@ public:
       case E_V8HFmode:
 	mode = E_V8HImode;
 	break;
+      default:
+	break;
       }
 
     if (m_vectors_per_tuple != 1)
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-23 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-23 15:56 [PATCH] arm: [MVE intrinsics] Add default clause to full_width_access::memory_vector_mode Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).