This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for sysdeps/unix/sysv/linux/mips/brk.c


sysdeps/unix/sysv/linux/mips/brk.c calls a syscall but fails to use the 
full set of clobbers for syscalls on MIPS Linux.  For safety it should use 
__SYSCALL_CLOBBERS the way all the other MIPS syscall definitions do.

2006-01-04  Joseph S. Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/mips/brk.c (__brk): Use
	__SYSCALL_CLOBBERS.

Index: sysdeps/unix/sysv/linux/mips/brk.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/brk.c,v
retrieving revision 1.3
diff -u -r1.3 brk.c
--- sysdeps/unix/sysv/linux/mips/brk.c	16 Sep 2005 12:20:48 -0000	1.3
+++ sysdeps/unix/sysv/linux/mips/brk.c	4 Jan 2006 01:20:11 -0000
@@ -41,7 +41,7 @@
 	 "syscall"		/* Perform the system call.  */
 	 : "=r" (res)
 	 : "I" (SYS_ify (brk)), "r" (addr)
-	 : "$4", "$7");
+	 : "$4", "$7", __SYSCALL_CLOBBERS);
     newbrk = (void *) res;
   }
   __curbrk = newbrk;


-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]