Please review, i'll commit it (in case I still have access), just need an OK.

commit 5e2e73b7754fca77ef7635cf52c73a3885110603
Author: André Hentschel <[email protected]>
Date:   Thu Dec 24 00:01:06 2015 +0100

    CRT_fp10: Protect ARM implementation against compiler optimizations
    
    Suggested-by: David Wohlferd <[email protected]>

diff --git a/mingw-w64-crt/crt/CRT_fp10.c b/mingw-w64-crt/crt/CRT_fp10.c
index 89f2617..41cb573 100644
--- a/mingw-w64-crt/crt/CRT_fp10.c
+++ b/mingw-w64-crt/crt/CRT_fp10.c
@@ -10,8 +10,7 @@ void _fpreset (void)
 {
 #if defined(_ARM_) || defined(__arm__)
   __asm__ __volatile__ (
-    "mov	r0, #0x00\n\t" /* INITIAL_FPSCR */
-    "vmsr	fpscr, r0\n\t");
+    "vmsr	fpscr, %0\n\t" : : "r"(0 /* INITIAL_FPSCR */));
 #else
 #ifdef __GNUC__
   __asm__ ("fninit");
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to