arm: warn about deprecation of iwmmx in mmintrin.h

Message ID
State Committed
Commit a82ecdeacf83996321de5312522b0cc961e02a95
Series arm: warn about deprecation of iwmmx in mmintrin.h |


Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Richard Earnshaw Feb. 27, 2024, 10:14 a.m. UTC
  GCC 13's changes file documents that iwmmx is deprecated.  Raise the bar
by warning when the mmintrin.h header is included by users, but provide
a way to suppress the warning.

	* config/arm/mmintrin.h: Warn if this header is included without
 gcc/config/arm/mmintrin.h | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/gcc/config/arm/mmintrin.h b/gcc/config/arm/mmintrin.h
index 07659502bf2..e9cc3ddd7ab 100644
--- a/gcc/config/arm/mmintrin.h
+++ b/gcc/config/arm/mmintrin.h
@@ -28,6 +28,9 @@ 
 #error mmintrin.h included without enabling WMMX/WMMX2 instructions (e.g. -march=iwmmxt or -march=iwmmxt2)
+#warning support for WMMX/WMMX2 is deprecated and will be removed in GCC 15.  Define __ENABLE_DEPRECATED_IWMMXT to suppress this warning
 #if defined __cplusplus
 extern "C" {