From b3e4a879a534add27e8435b11628d4d79d706434 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 11 Jan 2005 11:25:32 +0000 Subject: Patch from Bernardo Innocenti: Remove use of cast-as-l-value extension, removed in GCC 3.5. --- libc/sysdeps/linux/m68k/ptrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c index 423be05e2..e595a6ecd 100644 --- a/libc/sysdeps/linux/m68k/ptrace.c +++ b/libc/sysdeps/linux/m68k/ptrace.c @@ -8,7 +8,8 @@ ptrace(int request, int pid, int addr, int data) { long ret; long res; - if (request > 0 && request < 4) (long *)data = &ret; + if (request > 0 && request < 4) data = (int)&ret; + __asm__ volatile ("movel %1,%/d0\n\t" "movel %2,%/d1\n\t" -- cgit v1.2.3