From: Roland McGrath Date: Thu, 15 Dec 1994 00:12:48 +0000 (+0000) Subject: (_hurd_setup_sighandler): Remove A macro; just use `asm volatile' with X-Git-Tag: glibc-2.16-ports-before-merge~3988 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca194bd9dabff6318dbe850f64461e00106b9e29;p=thirdparty%2Fglibc.git (_hurd_setup_sighandler): Remove A macro; just use `asm volatile' with proper quotes in each line. --- diff --git a/sysdeps/mach/hurd/alpha/trampoline.c b/sysdeps/mach/hurd/alpha/trampoline.c index 455aa57c20e..85f4964e14f 100644 --- a/sysdeps/mach/hurd/alpha/trampoline.c +++ b/sysdeps/mach/hurd/alpha/trampoline.c @@ -234,14 +234,13 @@ _hurd_setup_sighandler (struct hurd_sigstate *ss, __sighandler_t handler, clobbered by running the handler). We use this saved value to pass to __sigreturn, so the handler can clobber the argument registers if it likes. */ -#define A(line) asm volatile (#line) /* Call the handler function, saving return address in ra ($26). */ - A (jsr $26, $26); + asm volatile ("jsr $26, ($26)"); /* Reset gp ($29) from the return address (here) in ra ($26). */ - A (ldgp $29, 0($26)); - A (mov $25, $16); /* Move saved SCP to argument register. */ + asm volatile ("ldgp $29, 0($26)"); + asm volatile ("mov $25, $16"); /* Move saved SCP to argument register. */ /* Call __sigreturn (SCP); this cannot return. */ - A (jmp $31, $27); + asm volatile ("jmp $31, ($27)"); /* NOTREACHED */ return NULL;