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.
This commit is contained in:
parent
a0b1798042
commit
a82ecdeacf
1 changed files with 3 additions and 0 deletions
|
@ -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" {
|
||||
|
|
Loading…
Add table
Reference in a new issue