This is the mail archive of the libc-alpha@sourceware.cygnus.com 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]

ppc mainline fixes.



I just committed these to the mainline, so it would build.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~geoffkc/patches/glibc-bitrot.patch=================
Index: libc/ChangeLog
===================================================================
RCS file: /cvs/glibc/libc/ChangeLog,v
retrieving revision 1.2957
diff -u -p -r1.2957 ChangeLog
--- ChangeLog	1999/12/30 18:12:52	1.2957
+++ ChangeLog	1999/12/30 23:34:44
@@ -1,3 +1,12 @@
+1999-12-30  Geoff Keating  <geoffk@cygnus.com>
+
+	* sysdeps/powerpc/fpu/bits/fenvinline.h (feraiseexcept): Remove
+	the (void) casts as now feraiseexcept returns a value.
+	(feclearexcept): Likewise.
+
+	* sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't use '%r0',
+	it interferes with the macros for AIX.
+
 1999-12-30  Ulrich Drepper  <drepper@cygnus.com>
 
 	* locale/programs/ld-collate.c (collate_finish): Always define
Index: libc/sysdeps/powerpc/fpu/bits/fenvinline.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/powerpc/fpu/bits/fenvinline.h,v
retrieving revision 1.1
diff -u -p -r1.1 fenvinline.h
--- fenvinline.h	1999/11/11 01:03:38	1.1
+++ fenvinline.h	1999/12/30 23:34:44
@@ -39,8 +39,8 @@
       ? (__extension__ ({ __asm__ __volatile__				      \
 			  ("mtfsb1 %s0"					      \
 			   : : "i#*X"(__builtin_ffs (__excepts)));	      \
-			  (void)0; }))					      \
-      : (void)0)							      \
+			  0; }))					      \
+      : 0)								      \
    : (feraiseexcept) (__excepts))
 
 /* Inline definition for feclearexcept.  */
@@ -52,8 +52,8 @@
       ? (__extension__ ({ __asm__ __volatile__				      \
 			  ("mtfsb0 %s0"					      \
 			   : : "i#*X"(__builtin_ffs (__excepts)));	      \
-			  (void)0; }))					      \
-      : (void)0)							      \
+			  0; }))					      \
+      : 0)								      \
    : (feclearexcept) (__excepts))
 
 #endif /* __GNUC__ && !_SOFT_FLOAT */
Index: libc/sysdeps/unix/sysv/linux/powerpc/sysdep.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/sysdep.h,v
retrieving revision 1.8
diff -u -p -r1.8 sysdep.h
--- sysdep.h	1999/10/10 20:35:02	1.8
+++ sysdep.h	1999/12/30 23:34:44
@@ -49,11 +49,11 @@
   .align ALIGNARG(2);							      \
 0:.long 0;								      \
   .previous;								      \
-  mflr  %r0;								      \
-  stw   %r0,4(%r1);	       						      \
+  mflr  r0;								      \
+  stw   r0,4(r1);	       						      \
   bl    _GLOBAL_OFFSET_TABLE_@local-4;					      \
-  mflr  %r11;								      \
-  lwz   %r0,0b@got(%r11);						      \
+  mflr  r11;								      \
+  lwz   r0,0b@got(r11);							      \
   bl    JUMPTARGET(_mcount);
 #else  /* PIC */
 #define CALL_MCOUNT							      \
@@ -61,10 +61,10 @@
   .align ALIGNARG(2);							      \
 0:.long 0;								      \
   .previous;								      \
-  mflr  %r0;								      \
-  lis   %r11,0b@ha;		       					      \
-  stw   %r0,4(%r1);	       						      \
-  addi  %r0,%r11,0b@l;							      \
+  mflr  r0;								      \
+  lis   r11,0b@ha;		       					      \
+  stw   r0,4(r1);	       						      \
+  addi  r0,r11,0b@l;							      \
   bl    JUMPTARGET(_mcount);
 #endif /* PIC */
 #else  /* PROF */
============================================================

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