They shall not be visible when targeting ARM or AArch64.

--
Best regards,
LIU Hao
From 2af6e122b7d66f10e69d262c2a7a5cb11c7587f2 Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Mon, 31 Jul 2023 22:42:46 +0800
Subject: [PATCH 1/2] headers/intrin: Fix declarations for some x86-specific
 functions

Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-headers/crt/intrin.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/mingw-w64-headers/crt/intrin.h b/mingw-w64-headers/crt/intrin.h
index 69653e440..4f0813c20 100644
--- a/mingw-w64-headers/crt/intrin.h
+++ b/mingw-w64-headers/crt/intrin.h
@@ -1062,8 +1062,8 @@ extern "C" {
     /* __MACHINEIA32(void __writecr3(unsigned)) moved to 
psdk_inc/intrin-impl.h */
     /* __MACHINEIA32(void __writecr4(unsigned)) moved to 
psdk_inc/intrin-impl.h */
     /* __MACHINEIA32(void __writecr8(unsigned)) moved to 
psdk_inc/intrin-impl.h */
-    __MACHINEI(void __wbinvd(void))
-    __MACHINEI(void __invlpg(void*))
+    __MACHINEX86X(void __wbinvd(void))
+    __MACHINEX86X(void __invlpg(void*))
     /* __MACHINEI(__MINGW_EXTENSION unsigned __int64 __readmsr(unsigned 
__LONG32)) moved to psdk_inc/intrin-impl.h */
     /* __MACHINEI(__MINGW_EXTENSION void __writemsr(unsigned __LONG32,unsigned 
__int64)) moved to psdk_inc/intrin-impl.h */
 #ifndef __GNUC__
@@ -1093,7 +1093,7 @@ extern "C" {
     /* __MACHINEI(void __outbytestring(unsigned short Port,unsigned char 
*Buffer,unsigned __LONG32 Count)) moved to psdk_inc/intrin-impl.h */
     /* __MACHINEI(void __outwordstring(unsigned short Port,unsigned short 
*Buffer,unsigned __LONG32 Count)) moved to psdk_inc/intrin-impl.h */
     /* __MACHINEI(void __outdwordstring(unsigned short Port,unsigned __LONG32 
*Buffer,unsigned __LONG32 Count)) moved to psdk_inc/intrin-impl.h */
-    __MACHINEI(unsigned int __getcallerseflags())
+    __MACHINEX86X(unsigned int __getcallerseflags())
 #if !defined(__GNUC__) || (!defined(__SSE2__) && 
!defined(__MINGW_FORCE_SYS_INTRINS))
     __MACHINEX64(__MINGW_EXTENSION __m128i _mm_set_epi64x(__int64 i1,__int64 
i0))
     __MACHINEX64(__MINGW_EXTENSION __m128i _mm_set1_epi64x(__int64 i))
@@ -1131,9 +1131,9 @@ extern "C" {
     /* __MACHINEX64(__MINGW_EXTENSION unsigned char 
_interlockedbittestandset64(__int64 *a,__int64 b)) moved to 
psdk_inc/intrin-impl.h */
     /* __MACHINEX64(__MINGW_EXTENSION unsigned char 
_interlockedbittestandreset64(__int64 *a,__int64 b)) moved to 
psdk_inc/intrin-impl.h */
     /* __MACHINEX64(__MINGW_EXTENSION unsigned char 
_interlockedbittestandcomplement64(__int64 *a,__int64 b)) moved to 
psdk_inc/intrin-impl.h */
-    __MACHINEI(void __cpuid(int a[4],int b))
-    __MACHINEI(__MINGW_EXTENSION unsigned __int64 __readpmc(unsigned __LONG32 
a))
-    __MACHINEI(unsigned __LONG32 __segmentlimit(unsigned __LONG32 a))
+    __MACHINEX86X(void __cpuid(int a[4],int b))
+    __MACHINEX86X(__MINGW_EXTENSION unsigned __int64 __readpmc(unsigned 
__LONG32 a))
+    __MACHINEX86X(unsigned __LONG32 __segmentlimit(unsigned __LONG32 a))
 
     /* __MACHINEIA32(unsigned char __readfsbyte(unsigned __LONG32 Offset)) 
moved to psdk_inc/intrin-impl.h */
     /* __MACHINEIA32(unsigned short __readfsword(unsigned __LONG32 Offset)) 
moved to psdk_inc/intrin-impl.h */
-- 
2.41.0

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to