aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-09 22:21:24 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-09 22:21:24 +0000
commitf57ae0b24679acc9db13dd6e95c6ee05cc837e09 (patch)
treec29377fe515ff6b1e77f1c1e8764ec3fa763a025 /sysdeps/powerpc
parentc934e1c065f9d066420b6dfba7857402a3eaa19c (diff)
downloadglibc-f57ae0b24679acc9db13dd6e95c6ee05cc837e09.tar
glibc-f57ae0b24679acc9db13dd6e95c6ee05cc837e09.tar.gz
glibc-f57ae0b24679acc9db13dd6e95c6ee05cc837e09.tar.bz2
glibc-f57ae0b24679acc9db13dd6e95c6ee05cc837e09.zip
Add volatile to PPC_DCBST, PPC_SYNC, and PPC_ICBI asm for broken compilers.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/dl-machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/powerpc/dl-machine.c b/sysdeps/powerpc/dl-machine.c
index ac2d94a0b5..3fac11fbd1 100644
--- a/sysdeps/powerpc/dl-machine.c
+++ b/sysdeps/powerpc/dl-machine.c
@@ -71,10 +71,10 @@
#define OPCODE_SLWI(ra,rs,sh) OPCODE_RLWINM(ra,rs,sh,0,31-sh)
-#define PPC_DCBST(where) asm ("dcbst 0,%0" : : "r"(where) : "memory")
-#define PPC_SYNC asm ("sync" : : : "memory")
+#define PPC_DCBST(where) asm volatile ("dcbst 0,%0" : : "r"(where) : "memory")
+#define PPC_SYNC asm volatile ("sync" : : : "memory")
#define PPC_ISYNC asm volatile ("sync; isync" : : : "memory")
-#define PPC_ICBI(where) asm ("icbi 0,%0" : : "r"(where) : "memory")
+#define PPC_ICBI(where) asm volatile ("icbi 0,%0" : : "r"(where) : "memory")
#define PPC_DIE asm volatile ("tweq 0,0")
/* Use this when you've modified some code, but it won't be in the