What about this?

Am 09.05.2014 00:08, schrieb Kai Tietz:
> Hi
> 
> I would prefer here to use __x86_64__ __i386__ etc.
> Have you tested that your changes work for IA targets?
> 
> Cheers
> Kai
> 
> Am 08.05.2014 23:35 schrieb "André Hentschel" <[email protected] 
> <mailto:[email protected]>>:
> 
>     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 6618)
+++ 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_) || defined(__x86_64__)
 	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_) || defined(__i386__)
 	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 6618)
+++ 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:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; 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

Reply via email to