diff options
author | Paul A. Clarke <pc@us.ibm.com> | 2019-06-11 14:37:37 -0500 |
---|---|---|
committer | Paul A. Clarke <pc@us.ibm.com> | 2019-06-19 20:20:02 -0500 |
commit | 49bc41b64239c4726f31fa35a1af4f22fb41d51f (patch) | |
tree | 02c06c7754786b89a892ffc797e1a7f0414c3e81 /sysdeps/powerpc/fpu/fenv_libc.h | |
parent | 335c1007bf183163c0a19724111a64097955b325 (diff) | |
download | glibc-49bc41b64239c4726f31fa35a1af4f22fb41d51f.tar glibc-49bc41b64239c4726f31fa35a1af4f22fb41d51f.tar.gz glibc-49bc41b64239c4726f31fa35a1af4f22fb41d51f.tar.bz2 glibc-49bc41b64239c4726f31fa35a1af4f22fb41d51f.zip |
[powerpc] add 'volatile' to asm
Add 'volatile' keyword to a few asm statements, to force the compiler
to generate the instructions therein.
Some instances were implicitly volatile, but adding keyword for consistency.
2019-06-19 Paul A. Clarke <pc@us.ibm.com>
* sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
* sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
(__FPU_MFFSL): Likewise.
(_FPU_SETCW): Likewise.
Diffstat (limited to 'sysdeps/powerpc/fpu/fenv_libc.h')
-rw-r--r-- | sysdeps/powerpc/fpu/fenv_libc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/fpu/fenv_libc.h b/sysdeps/powerpc/fpu/fenv_libc.h index f8dd1b7a8b..f66bf246cb 100644 --- a/sysdeps/powerpc/fpu/fenv_libc.h +++ b/sysdeps/powerpc/fpu/fenv_libc.h @@ -56,9 +56,9 @@ extern const fenv_t *__fe_mask_env (void) attribute_hidden; #define relax_fenv_state() \ do { \ if (GLRO(dl_hwcap) & PPC_FEATURE_HAS_DFP) \ - asm (".machine push; .machine \"power6\"; " \ + asm volatile (".machine push; .machine \"power6\"; " \ "mtfsfi 7,0,1; .machine pop"); \ - asm ("mtfsfi 7,0"); \ + asm volatile ("mtfsfi 7,0"); \ } while(0) /* Set/clear a particular FPSCR bit (for instance, |