summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>1999-12-30 23:37:12 +0000
committerGeoff Keating <geoffk@cygnus.com>1999-12-30 23:37:12 +0000
commit4efb5faf8c15ba85539bf1fbd9e05154ab65b4c4 (patch)
tree33b516a2d5b46a632d906aadc63b93234975e34c
parent17440fd3783e50592cadefef5cfb8d1a2ce8a035 (diff)
downloadglibc-4efb5faf8c15ba85539bf1fbd9e05154ab65b4c4.tar.gz
glibc-4efb5faf8c15ba85539bf1fbd9e05154ab65b4c4.tar.xz
glibc-4efb5faf8c15ba85539bf1fbd9e05154ab65b4c4.zip
* 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  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.
-rw-r--r--ChangeLog9
-rw-r--r--sysdeps/powerpc/fpu/bits/fenvinline.h8
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sysdep.h16
3 files changed, 21 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 4db9d63b11..9fd1e69d5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/sysdeps/powerpc/fpu/bits/fenvinline.h b/sysdeps/powerpc/fpu/bits/fenvinline.h
index 6ab3105a3b..f13cd70cc1 100644
--- a/sysdeps/powerpc/fpu/bits/fenvinline.h
+++ b/sysdeps/powerpc/fpu/bits/fenvinline.h
@@ -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 */
diff --git a/sysdeps/unix/sysv/linux/powerpc/sysdep.h b/sysdeps/unix/sysv/linux/powerpc/sysdep.h
index 3bbedc3743..fbe3a4820c 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sysdep.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sysdep.h
@@ -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 */