From ca18306b75e87b4ee356a6b47a3695c6b23f48e9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 17 Dec 2001 01:03:08 +0000 Subject: * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after `default:' to silence new GCC warning. Rewrite cast of lvalue to silence new GCC warning. * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm. --- sysdeps/mach/hurd/i386/init-first.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index a50e41892a..51892d52c2 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -247,22 +247,18 @@ init (int *data) we will run on, and jmp to the run-time address of `init1'; when it returns, it will run the user code with the argument data at the top of the stack. */ -asm (" - switch_stacks: - movl %eax, %esp - jmp *%ecx -"); +asm ("switch_stacks:\n" + " movl %eax, %esp\n" + " jmp *%ecx"); /* As in the stack-switching case, at this point our stack is unwound and callers' registers restored, and only %ecx and %eax communicate values from the lines above. In this case we have stashed in %eax the user code return address. Push it on the top of the stack so it acts as init1's return address, and then jump there. */ -asm (" - call_init1: - push %eax - jmp *%ecx -"); +asm ("call_init1:\n" + " push %eax\n" + " jmp *%ecx\n"); /* Do the first essential initializations that must precede all else. */ -- cgit 1.4.1