mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 11:54:24 +08:00
CRT_fp10: Protect ARM implementation against compiler optimizations
Suggested-by: David Wohlferd <dw@LimeGreenSocks.com>
This commit is contained in:
parent
40b1e7a718
commit
5e2e73b775
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user