This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: linuxthreads changes for mips64-linux
On Mar 14, 2003, Alexandre Oliva <aoliva at redhat dot com> wrote:
> On Mar 14, 2003, Alexandre Oliva <aoliva at redhat dot com> wrote:
>> This makes the mips-specific code in linuxthreads comply with n32 and
>> n64 as well.
> And here are the corresponding changes for the top-level tree. Ok?
And here's on more related change I had missed before. Ok?
Index: ChangeLog
2003-03-14 Alexandre Oliva <aoliva at redhat dot com>
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
.set mips2 on new abis.
Index: sysdeps/unix/sysv/linux/mips/sys/tas.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/sys/tas.h,v
retrieving revision 1.9
diff -u -p -r1.9 tas.h
--- sysdeps/unix/sysv/linux/mips/sys/tas.h 16 Jul 2002 00:58:07 -0000 1.9
+++ sysdeps/unix/sysv/linux/mips/sys/tas.h 14 Mar 2003 06:43:47 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Maciej W. Rozycki <macro at ds2 dot pg dot gda dot pl>, 2000.
@@ -41,7 +41,9 @@ _test_and_set (int *p, int v) __THROW
("/* Inline test and set */\n"
"1:\n\t"
".set push\n\t"
+#if _MIPS_SIM == _MIPS_SIM_ABI32
".set mips2\n\t"
+#endif
"ll %0,%3\n\t"
"move %1,%4\n\t"
"beq %0,%4,2f\n\t"
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer