Please review, i'll split it up and commit it.
the tab before .globl is needed, otherwise it's not recognized on ARM.
DECLSPEC_ALIGN(8) for the context seems to be hardly supported by our current
toolchain
Index: mingw-w64-crt/math/_chgsignl.S
===================================================================
--- mingw-w64-crt/math/_chgsignl.S (Revision 6615)
+++ mingw-w64-crt/math/_chgsignl.S (Arbeitskopie)
@@ -25,10 +25,10 @@
#else
.align 4
#endif
-.globl __MINGW_USYMBOL(_chgsignl)
+ .globl __MINGW_USYMBOL(_chgsignl)
.def __MINGW_USYMBOL(_chgsignl); .scl 2; .type 32; .endef
__MINGW_USYMBOL(_chgsignl):
-#ifdef _WIN64
+#if defined(_AMD64_)
movq (%rdx), %rax
movq 8(%rdx), %rdx
xorq $0x8000, %rdx
@@ -36,7 +36,10 @@
movq %rdx, 8(%rcx)
movq %rcx, %rax
ret
-#else
+#elif defined(_ARM_)
+ vneg.f64 d0, d0
+ bx lr
+#elif defined(_X86_)
movl 12(%esp),%eax
xorl $0x8000,%eax
movl %eax,12(%esp)
Index: mingw-w64-headers/include/winnt.h
===================================================================
--- mingw-w64-headers/include/winnt.h (Revision 6615)
+++ mingw-w64-headers/include/winnt.h (Arbeitskopie)
@@ -1838,7 +1838,7 @@
LONGLONG High;
} NEON128, *PNEON128;
- typedef struct DECLSPEC_ALIGN(8) _CONTEXT {
+ typedef struct _CONTEXT {
DWORD ContextFlags;
DWORD R0;
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public