[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r1384 - in /branches/eglibc-2_5: libc/ libc/soft-fp/ libc/sysdeps/ieee754/ldbl-128ibm/ ports/ ports/sysdeps/powerpc/nofpu/ p...



Author: joseph
Date: Mon Feb  5 10:15:04 2007
New Revision: 1384

Log:
libc:
	* soft-fp/op-common.h, sysdeps/ieee754/ldbl-128ibm/s_copysignl.c,
	sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Resync with trunk.
	* soft-fp/fenv_libc.h: Remove.

ports:
	Backport from trunk:
	2007-01-25  Atsushi Nemoto <anemo@xxxxxxxxxxxxx>
	            Daniel Jacobowitz  <dan@xxxxxxxxxxxxxxxx>
	* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove msgctl,
	shmctl, and semctl.
	* sysdeps/unix/sysv/linux/mips/misp64/semctl.c,
	sysdeps/unix/sysv/linux/mips/mips64/shmctl.c,
	sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: New files.
	2007-01-23  Daniel Jacobowitz  <dan@xxxxxxxxxxxxxxxx>
	* sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
	(cfi_same_value): Delete definition.
	2007-01-23  Steven Munroe  <sjmunroe@xxxxxxxxxx>
	[BZ #2749]
	* sysdeps/powerpc/nofpu/fenv_libc.h: New file.

Added:
    branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/fenv_libc.h
    branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
      - copied unchanged from r1383, trunk/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
    branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/semctl.c
      - copied unchanged from r1383, trunk/ports/sysdeps/unix/sysv/linux/mips/mips64/semctl.c
    branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
      - copied unchanged from r1383, trunk/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
Removed:
    branches/eglibc-2_5/libc/soft-fp/fenv_libc.h
Modified:
    branches/eglibc-2_5/libc/ChangeLog.eglibc
    branches/eglibc-2_5/libc/soft-fp/op-common.h
    branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c
    branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c
    branches/eglibc-2_5/ports/ChangeLog.eglibc
    branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
    branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list

Modified: branches/eglibc-2_5/libc/ChangeLog.eglibc
==============================================================================
--- branches/eglibc-2_5/libc/ChangeLog.eglibc (original)
+++ branches/eglibc-2_5/libc/ChangeLog.eglibc Mon Feb  5 10:15:04 2007
@@ -1,3 +1,9 @@
+2007-02-05  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* soft-fp/op-common.h, sysdeps/ieee754/ldbl-128ibm/s_copysignl.c,
+	sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Resync with trunk.
+	* soft-fp/fenv_libc.h: Remove.
+
 2007-02-02  Jim Blandy  <jimb@xxxxxxxxxxxxxxxx>
 
 	Use the host nm in NPTL tests.

Modified: branches/eglibc-2_5/libc/soft-fp/op-common.h
==============================================================================
--- branches/eglibc-2_5/libc/soft-fp/op-common.h (original)
+++ branches/eglibc-2_5/libc/soft-fp/op-common.h Mon Feb  5 10:15:04 2007
@@ -1,5 +1,5 @@
 /* Software floating-point emulation. Common operations.
-   Copyright (C) 1997,1998,1999,2006 Free Software Foundation, Inc.
+   Copyright (C) 1997,1998,1999,2006,2007 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@xxxxxxxxxx),
 		  Jakub Jelinek (jj@xxxxxxxxxxxxxx),
@@ -131,12 +131,10 @@
 
 /* Prepare to pack an fp value in semi-raw mode: the mantissa is
    rounded and shifted right, with the rounding possibly increasing
-   the exponent (including changing a finite value to infinity).
-   Be sure not to round NaNs.  */
+   the exponent (including changing a finite value to infinity).  */
 #define _FP_PACK_SEMIRAW(fs, wc, X)				\
 do {								\
-  if(X##_e != _FP_EXPMAX_##fs)					\
-    _FP_ROUND(wc, X);						\
+  _FP_ROUND(wc, X);						\
   if (_FP_FRAC_HIGH_##fs(X)					\
       & (_FP_OVERFLOW_##fs >> 1))				\
     {								\
@@ -1254,6 +1252,9 @@
 	      _FP_FRAC_SRL_##swc(S, (_FP_WFRACBITS_##sfs		     \
 				     - _FP_WFRACBITS_##dfs));		     \
 	      _FP_FRAC_COPY_##dwc##_##swc(D, S);			     \
+	      /* Semi-raw NaN must have all workbits cleared.  */	     \
+	      _FP_FRAC_LOW_##dwc(D)					     \
+		&= ~(_FP_W_TYPE) ((1 << _FP_WORKBITS) - 1);		     \
 	      _FP_FRAC_HIGH_##dfs(D) |= _FP_QNANBIT_SH_##dfs;		     \
 	    }								     \
 	}								     \

Modified: branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c
==============================================================================
--- branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c (original)
+++ branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c Mon Feb  5 10:15:04 2007
@@ -34,7 +34,7 @@
 	long double x,y;
 #endif
 {
-  if( signbit(x) != signbit(y) )
+  if (signbit (x) != signbit (y))
     x = -x;
   return x;
 }

Modified: branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c
==============================================================================
--- branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (original)
+++ branches/eglibc-2_5/libc/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c Mon Feb  5 10:15:04 2007
@@ -38,6 +38,6 @@
 	lx = lx ^ ( hx & 0x8000000000000000LL );
 	hx = hx & 0x7fffffffffffffffLL;
 	SET_LDOUBLE_WORDS64(x,hx,lx);
-        return x;
+	return x;
 }
 long_double_symbol (libm, __fabsl, fabsl);

Modified: branches/eglibc-2_5/ports/ChangeLog.eglibc
==============================================================================
--- branches/eglibc-2_5/ports/ChangeLog.eglibc (original)
+++ branches/eglibc-2_5/ports/ChangeLog.eglibc Mon Feb  5 10:15:04 2007
@@ -1,3 +1,20 @@
+2007-02-05  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	Backport from trunk:
+	2007-01-25  Atsushi Nemoto <anemo@xxxxxxxxxxxxx>
+	            Daniel Jacobowitz  <dan@xxxxxxxxxxxxxxxx>
+	* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove msgctl,
+	shmctl, and semctl.
+	* sysdeps/unix/sysv/linux/mips/misp64/semctl.c,
+	sysdeps/unix/sysv/linux/mips/mips64/shmctl.c,
+	sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: New files.
+	2007-01-23  Daniel Jacobowitz  <dan@xxxxxxxxxxxxxxxx>
+	* sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
+	(cfi_same_value): Delete definition.
+	2007-01-23  Steven Munroe  <sjmunroe@xxxxxxxxxx>
+	[BZ #2749]
+	* sysdeps/powerpc/nofpu/fenv_libc.h: New file.
+
 2007-01-31  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/mips/bits/mathdef.h (float_t): Change to float.

Added: branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/fenv_libc.h
==============================================================================
--- branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/fenv_libc.h (added)
+++ branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/fenv_libc.h Mon Feb  5 10:15:04 2007
@@ -1,0 +1,29 @@
+/* Internal libc stuff for floating point environment routines.
+   Copyright (C) 2007 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _FENV_LIBC_H
+#define _FENV_LIBC_H	1
+
+/* fenv_libc.h is used in libm implementations of ldbl-128ibm.  So we
+   need this version in the soft-fp to at minimum include fenv.h to
+   get the fegetround definition.  */
+
+#include <fenv.h>
+ 
+#endif /* fenv_libc.h */

Modified: branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
==============================================================================
--- branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h (original)
+++ branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h Mon Feb  5 10:15:04 2007
@@ -27,12 +27,6 @@
 /* Gas will put the initial save of $gp into the CIE, because it appears to
    happen before any instructions.  So we use cfi_same_value instead of
    cfi_restore.  */
-
-#ifdef HAVE_ASM_CFI_DIRECTIVES
-# define cfi_same_value .cfi_same_value
-#else
-# define cfi_same_value
-#endif
 
 #if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
 

Modified: branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
==============================================================================
--- branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (original)
+++ branches/eglibc-2_5/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list Mon Feb  5 10:15:04 2007
@@ -2,16 +2,14 @@
 
 lseek		-	lseek		Ci:iii	__libc_lseek	__lseek lseek __llseek llseek __libc_lseek64 __lseek64 lseek64
 
-# semaphore and shm system calls
-msgctl		-	msgctl		i:iip	__msgctl	msgctl
+# Semaphore and shm system calls.  msgctl, shmctl, and semctl have C
+# wrappers (to set __IPC_64).
 msgget		-	msgget		i:ii	__msgget	msgget
 msgrcv		-	msgrcv		Ci:ibnii __msgrcv	msgrcv
 msgsnd		-	msgsnd		Ci:ibni	__msgsnd	msgsnd
 shmat		-	shmat		i:ipi	__shmat		shmat
-shmctl		-	shmctl		i:iip	__shmctl	shmctl
 shmdt		-	shmdt		i:s	__shmdt		shmdt
 shmget		-	shmget		i:iii	__shmget	shmget
 semop		-	semop		i:ipi	__semop		semop
 semtimedop	-	semtimedop	i:ipip	semtimedop
 semget		-	semget		i:iii	__semget	semget
-semctl		-	semctl		i:iiii	__semctl	semctl