aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2024-02-26 17:20:58 +0000
committerRichard Earnshaw <rearnsha@arm.com>2024-02-27 10:10:01 +0000
commita82ecdeacf83996321de5312522b0cc961e02a95 (patch)
treedc197f7c3a71fac22c90e2c206fd4f6db6081188 /gcc
parenta0b1798042d033fd2cc2c806afbb77875dd2909b (diff)
downloadgcc-a82ecdeacf83996321de5312522b0cc961e02a95.zip
gcc-a82ecdeacf83996321de5312522b0cc961e02a95.tar.gz
gcc-a82ecdeacf83996321de5312522b0cc961e02a95.tar.bz2
arm: warn about deprecation of iwmmx in mmintrin.h
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/arm/mmintrin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/arm/mmintrin.h b/gcc/config/arm/mmintrin.h
index 0765950..e9cc3dd 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)
#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" {