The scanf functions don't specify thumb mode which makes them fail to
compile.
Please Review
diff --git a/mingw-w64-crt/stdio/vfscanf2.S b/mingw-w64-crt/stdio/vfscanf2.S
index f6ba5d6..97807a9 100644
--- a/mingw-w64-crt/stdio/vfscanf2.S
+++ b/mingw-w64-crt/stdio/vfscanf2.S
@@ -9,6 +9,9 @@
#define FWD __MINGW_USYMBOL(__ms_vfscanf)
.file "vfscanf2.S"
+#if defined(_ARM_) || defined(__arm__)
+ .thumb
+#endif
.text
.p2align 4,,15
.globl FCT
@@ -23,6 +26,7 @@ FCT:
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) ||
defined(__i386__)
jmp FWD
#elif defined(_ARM_) || defined(__arm__)
+ .thumb_func
b FWD
#endif
#ifdef _WIN64
diff --git a/mingw-w64-crt/stdio/vfwscanf2.S
b/mingw-w64-crt/stdio/vfwscanf2.S
index c27fb7d..77668d8 100644
--- a/mingw-w64-crt/stdio/vfwscanf2.S
+++ b/mingw-w64-crt/stdio/vfwscanf2.S
@@ -9,6 +9,9 @@
#define FWD __MINGW_USYMBOL(__ms_vfwscanf)
.file "vfwscanf2.S"
+#if defined(_ARM_) || defined(__arm__)
+ .thumb
+#endif
.text
.p2align 4,,15
.globl FCT
@@ -23,6 +26,7 @@ FCT:
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) ||
defined(__i386__)
jmp FWD
#elif defined(_ARM_) || defined(__arm__)
+ .thumb_func
b FWD
#endif
#ifdef _WIN64
diff --git a/mingw-w64-crt/stdio/vscanf2.S b/mingw-w64-crt/stdio/vscanf2.S
index 4114cd0..9bb4b25 100644
--- a/mingw-w64-crt/stdio/vscanf2.S
+++ b/mingw-w64-crt/stdio/vscanf2.S
@@ -9,6 +9,9 @@
#define FWD __MINGW_USYMBOL(__ms_vscanf)
.file "vscanf2.S"
+#if defined(_ARM_) || defined(__arm__)
+ .thumb
+#endif
.text
.p2align 4,,15
.globl FCT
@@ -23,6 +26,7 @@ FCT:
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) ||
defined(__i386__)
jmp FWD
#elif defined(_ARM_) || defined(__arm__)
+ .thumb_func
b FWD
#endif
#ifdef _WIN64
diff --git a/mingw-w64-crt/stdio/vsscanf2.S b/mingw-w64-crt/stdio/vsscanf2.S
index 5f814bb..6a008d4 100644
--- a/mingw-w64-crt/stdio/vsscanf2.S
+++ b/mingw-w64-crt/stdio/vsscanf2.S
@@ -9,6 +9,9 @@
#define FWD __MINGW_USYMBOL(__ms_vsscanf)
.file "vsscanf2.S"
+#if defined(_ARM_) || defined(__arm__)
+ .thumb
+#endif
.text
.p2align 4,,15
.globl FCT
@@ -23,6 +26,7 @@ FCT:
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) ||
defined(__i386__)
jmp FWD
#elif defined(_ARM_) || defined(__arm__)
+ .thumb_func
b FWD
#endif
#ifdef _WIN64
diff --git a/mingw-w64-crt/stdio/vswscanf2.S
b/mingw-w64-crt/stdio/vswscanf2.S
index 87cbe2d..52a4a3f 100644
--- a/mingw-w64-crt/stdio/vswscanf2.S
+++ b/mingw-w64-crt/stdio/vswscanf2.S
@@ -9,6 +9,9 @@
#define FWD __MINGW_USYMBOL(__ms_vswscanf)
.file "vswscanf2.S"
+#if defined(_ARM_) || defined(__arm__)
+ .thumb
+#endif
.text
.p2align 4,,15
.globl FCT
@@ -23,6 +26,7 @@ FCT:
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) ||
defined(__i386__)
jmp FWD
#elif defined(_ARM_) || defined(__arm__)
+ .thumb_func
b FWD
#endif
#ifdef _WIN64
diff --git a/mingw-w64-crt/stdio/vwscanf2.S b/mingw-w64-crt/stdio/vwscanf2.S
index c4c6716..cda833a 100644
--- a/mingw-w64-crt/stdio/vwscanf2.S
+++ b/mingw-w64-crt/stdio/vwscanf2.S
@@ -9,6 +9,9 @@
#define FWD __MINGW_USYMBOL(__ms_vwscanf)
.file "vwscanf2.S"
+#if defined(_ARM_) || defined(__arm__)
+ .thumb
+#endif
.text
.p2align 4,,15
.globl FCT
@@ -23,6 +26,7 @@ FCT:
#if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) ||
defined(__i386__)
jmp FWD
#elif defined(_ARM_) || defined(__arm__)
+ .thumb_func
b FWD
#endif
#ifdef _WIN64
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public