diff options
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/unix')
-rw-r--r-- | libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c | 2 | ||||
-rw-r--r-- | libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c index 2ec11bf68..eace94c86 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c @@ -87,7 +87,7 @@ notification_function (void *arg) { /* Copy the function and parameter so that the parent thread can go on with its life. */ - volatile union notify_data *data = (volatile union notify_data *) arg; + __volatile__ union notify_data *data = (__volatile__ union notify_data *) arg; void (*fct) (union sigval) = data->fct; union sigval param = data->param; diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h index 793cb1d5f..b736526c1 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/sparc/fork.h @@ -24,7 +24,7 @@ register long __o0 __asm__ ("o0"); \ register long __o1 __asm__ ("o1"); \ register long __g1 __asm__ ("g1") = __NR_fork; \ - __asm __volatile (__SYSCALL_STRING \ + __asm__ __volatile__ (__SYSCALL_STRING \ : "=r" (__g1), "=r" (__o0), "=r" (__o1) \ : "0" (__g1) \ : __SYSCALL_CLOBBERS); \ |