Where I used to write
asm volatile("fldcw %0" : : "m" (0x037f));
the latest toolset now complains
warning: use of memory input without lvalue in asm operand 0 is deprecated
I think the best way to fix that is
volatile unsigned short int control_word = 0x037f;
asm volatile("fldcw %0" : : "m" (control_word));
I hope this saves someone else a few minutes, or
encourages someone to suggest something better.
Well, this seems better for MinGW-only code:
#if defined __STDC_IEC_559__ && defined __MINGW32__
but I don't know that gcc on other x86 platforms
would support it.