From: Uros Bizjak Date: Wed, 5 Sep 2012 21:43:45 +0000 (+0200) Subject: fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v. X-Git-Tag: misc/gccgo-go1_1_2~1020 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=588dbb19143ba4b5575fa63b73c5a4c67e7857db;p=thirdparty%2Fgcc.git fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v. * config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v. From-SVN: r190997 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 80d7b53fcc74..b5664f37b5ac 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,7 +1,6 @@ 2012-09-05 Uros Bizjak - * config/fpu-387.h (set_fpu): Use __builtin_ia32_stmxcsr and - __builtin_ia32_ldmxcsr intrinsics. + * config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v. 2012-07-25 Andreas Schwab diff --git a/libgfortran/config/fpu-387.h b/libgfortran/config/fpu-387.h index 0e87aab8b9d0..d2b7a05094f4 100644 --- a/libgfortran/config/fpu-387.h +++ b/libgfortran/config/fpu-387.h @@ -118,7 +118,7 @@ void set_fpu (void) { unsigned int cw_sse; - cw_sse = __builtin_ia32_stmxcsr (); + asm volatile ("%vstmxcsr %0" : "=m" (cw_sse)); cw_sse &= 0xffff0000; cw_sse |= (_FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM | _FPU_MASK_OM @@ -131,6 +131,6 @@ void set_fpu (void) if (options.fpe & GFC_FPE_UNDERFLOW) cw_sse &= ~(_FPU_MASK_UM << 7); if (options.fpe & GFC_FPE_INEXACT) cw_sse &= ~(_FPU_MASK_PM << 7); - __builtin_ia32_ldmxcsr (cw_sse); + asm volatile ("%vldmxcsr %0" : : "m" (cw_sse)); } }