]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: warn about deprecation of iwmmx in mmintrin.h
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 26 Feb 2024 17:20:58 +0000 (17:20 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 27 Feb 2024 10:10:01 +0000 (10:10 +0000)
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.

gcc:
* config/arm/mmintrin.h: Warn if this header is included without
defining __ENABLE_DEPRECATED_IWMMXT.

gcc/config/arm/mmintrin.h

index 07659502bf2f9315a51b16daa9d46068b64394b4..e9cc3ddd7ab7e70bca7e5dc5601db11faa957cce 100644 (file)
@@ -28,6 +28,9 @@
 #error mmintrin.h included without enabling WMMX/WMMX2 instructions (e.g. -march=iwmmxt or -march=iwmmxt2)
 #endif
 
+#ifndef __ENABLE_DEPRECATED_IWMMXT
+#warning support for WMMX/WMMX2 is deprecated and will be removed in GCC 15.  Define __ENABLE_DEPRECATED_IWMMXT to suppress this warning
+#endif
 
 #if defined __cplusplus
 extern "C" {