summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/brk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nios2/brk.c')
-rw-r--r--libc/sysdeps/linux/nios2/brk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/nios2/brk.c b/libc/sysdeps/linux/nios2/brk.c
index 8d6288793..0420798bc 100644
--- a/libc/sysdeps/linux/nios2/brk.c
+++ b/libc/sysdeps/linux/nios2/brk.c
@@ -28,11 +28,11 @@ libc_hidden_proto(brk)
int brk (void *addr)
{
void *newbrk;
- register int r2 asm("r2") = TRAP_ID_SYSCALL;
- register int r3 asm("r3") = __NR_brk;
- register void *r4 asm("r4") = addr;
+ register int r2 __asm__("r2") = TRAP_ID_SYSCALL;
+ register int r3 __asm__("r3") = __NR_brk;
+ register void *r4 __asm__("r4") = addr;
- asm volatile ("trap\n\t" : "=r"(newbrk) : "0"(r2), "r"(r3), "r"(r4));
+ __asm__ __volatile__ ("trap\n\t" : "=r"(newbrk) : "0"(r2), "r"(r3), "r"(r4));
__curbrk = newbrk;