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

[Commits] r23872 - in /fsf/trunk/libc: ./ argp/ debug/ elf/ libidn/ malloc/ math/ nis/ ports/ ports/sysdeps/arm/ ports/sysdeps/ia64/fp...



Author: eglibc
Date: Fri Aug 30 00:02:28 2013
New Revision: 23872

Log:
Import glibc-mainline for 2013-08-30

Added:
    fsf/trunk/libc/sysdeps/gnu/ldsodefs.h
Removed:
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/aix/
Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/NEWS
    fsf/trunk/libc/argp/argp-help.c
    fsf/trunk/libc/argp/argp-parse.c
    fsf/trunk/libc/debug/backtracesyms.c
    fsf/trunk/libc/elf/elf.h
    fsf/trunk/libc/libidn/ChangeLog
    fsf/trunk/libc/libidn/stringprep.c
    fsf/trunk/libc/malloc/malloc.c
    fsf/trunk/libc/math/basic-test.c
    fsf/trunk/libc/nis/nis_print.c
    fsf/trunk/libc/ports/ChangeLog.am33
    fsf/trunk/libc/ports/ChangeLog.arm
    fsf/trunk/libc/ports/ChangeLog.ia64
    fsf/trunk/libc/ports/ChangeLog.mips
    fsf/trunk/libc/ports/sysdeps/arm/dl-machine.h
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_acoshl.S
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_log.S
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_logf.S
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/s_log1p.S
    fsf/trunk/libc/ports/sysdeps/ia64/fpu/w_tgammal.S
    fsf/trunk/libc/ports/sysdeps/mips/sys/asm.h
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h
    fsf/trunk/libc/resolv/res_comp.c
    fsf/trunk/libc/stdlib/stdlib.h
    fsf/trunk/libc/stdlib/strtod_l.c
    fsf/trunk/libc/stdlib/strtof_l.c
    fsf/trunk/libc/stdlib/tst-strtod6.c
    fsf/trunk/libc/sunrpc/clnt_tcp.c
    fsf/trunk/libc/sunrpc/clnt_udp.c
    fsf/trunk/libc/sunrpc/clnt_unix.c
    fsf/trunk/libc/sysdeps/ieee754/ldbl-128/strtold_l.c
    fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/ieee754.h
    fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/strtold_l.c
    fsf/trunk/libc/sysdeps/ieee754/ldbl-64-128/strtold_l.c
    fsf/trunk/libc/sysdeps/ieee754/ldbl-96/strtold_l.c
    fsf/trunk/libc/sysdeps/mach/hurd/bits/errno.h
    fsf/trunk/libc/sysdeps/mach/hurd/errnos.awk
    fsf/trunk/libc/sysdeps/mach/hurd/i386/init-first.c
    fsf/trunk/libc/sysdeps/unix/bsd/ptsname.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/ldsodefs.h
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/libc-start.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
    fsf/trunk/libc/sysdeps/unix/sysv/linux/ptsname.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Fri Aug 30 00:02:28 2013
@@ -1,3 +1,85 @@
+2013-08-29  OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
+	aix specific files.
+	* sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
+
+2013-08-29  Thomas Schwinge  <thomas@xxxxxxxxxxxxxxxx>
+	    Roland McGrath  <roland@xxxxxxxxxxxxx>
+
+	* sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
+	* sysdeps/mach/hurd/bits/errno.h: Regenerate.
+
+2013-08-29  Samuel Thibault  <samuel.thibault@xxxxxxxxxxxx>
+
+	* sysdeps/mach/hurd/i386/init-first.c (init1): Use
+	__executable_start symbol instead of _start.
+
+2013-08-29  Thomas Schwinge  <thomas@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
+	(VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
+	Move macros to...
+	* sysdeps/gnu/ldsodefs.h: ... this new file.
+
+	* sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
+	(VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
+	instead of ELFOSABI_LINUX.
+
+	[BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
+	* stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
+	* stdlib/strtod_l.c (SET_MANTISSA): Likewise.
+	* sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
+	Likewise.
+	* sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
+	* sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
+	* sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
+	Likewise.
+	* sysdeps/ieee754/ldbl-128ibm/ieee754.h
+	(ibm_extended_long_double): Add ieee_nan member.
+	* stdlib/tst-strtod6.c (test): New function, renamed from do_test.
+	(do_test): New function.
+
+	* math/basic-test.c (TEST_CONVERT): New macro, renamed from
+	TEST_TRUNC.
+	(convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
+	functions, renamed from truncdfsf_test, trunctfsf_test,
+	trunctfdf_test.
+	(convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
+	functions.
+	(do_test): Run all these.
+
+2013-08-29   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
+
+	* argp/argp-help.c: Fix typos.
+	* argp/argp-parse.c: Likewise.
+	* debug/backtracesyms.c: Likewise.
+	* elf/elf.h: Likewise.
+	* malloc/malloc.c: Likewise.
+	* nis/nis_print.c: Likewise.
+	* resolv/res_comp.c: Likewise.
+	* stdlib/stdlib.h: Likewise.
+	* sunrpc/clnt_tcp.c: Likewise.
+	* sunrpc/clnt_udp.c: Likewise.
+	* sunrpc/clnt_unix.c: Likewise.
+	* sysdeps/unix/bsd/ptsname.c: Likewise.
+	* sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
+	Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
+	Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
+	Likewise.
+	* sysdeps/unix/sysv/linux/ptsname.c: Likewise.
+
 2013-08-28  Siddhesh Poyarekar  <siddhesh@xxxxxxxxxx>
 
 	* nscd/aicache.c (addhstaiX): Use __glibc_unlikely.

Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Fri Aug 30 00:02:28 2013
@@ -9,7 +9,8 @@
 
 * The following bugs are resolved with this release:
 
-  14699, 15531, 15532, 15736, 15749, 15797, 15867, 15890, 15897.
+  14699, 15522, 15531, 15532, 15736, 15749, 15797, 15867, 15890, 15897,
+  15905.
 
 * CVE-2013-4237 The readdir_r function could write more than NAME_MAX bytes
   to the d_name member of struct dirent, or omit the terminating NUL

Modified: fsf/trunk/libc/argp/argp-help.c
==============================================================================
--- fsf/trunk/libc/argp/argp-help.c (original)
+++ fsf/trunk/libc/argp/argp-help.c Fri Aug 30 00:02:28 2013
@@ -160,7 +160,7 @@
 };
 #define nuparam_names (sizeof (uparam_names) / sizeof (uparam_names[0]))
 
-/* Read user options from the environment, and fill in UPARAMS appropiately.  */
+/* Read user options from the environment, and fill in UPARAMS appropriately.  */
 static void
 fill_in_uparams (const struct argp_state *state)
 {
@@ -275,11 +275,11 @@
      -xARG, -yARG, --long1=ARG, --long2=ARG        Documentation...
 
    Where ARG will be omitted if there's no argument, for this option, or
-   will be surrounded by "[" and "]" appropiately if the argument is
-   optional.  The documentation string is word-wrapped appropiately, and if
+   will be surrounded by "[" and "]" appropriately if the argument is
+   optional.  The documentation string is word-wrapped appropriately, and if
    the list of options is long enough, it will be started on a separate line.
    If there are no short options for a given option, the first long option is
-   indented slighly in a way that's supposed to make most long options appear
+   indented slightly in a way that's supposed to make most long options appear
    to be in a separate column.
 
    For example, the following output (from ps):
@@ -998,7 +998,7 @@
     return doc;
 }
 
-/* Prints STR as a header line, with the margin lines set appropiately, and
+/* Prints STR as a header line, with the margin lines set appropriately, and
    notes the fact that groups should be separated with a blank line.  ARGP is
    the argp that should dictate any user doc filtering to take place.  Note
    that the previous wrap margin isn't restored, but the left margin is reset

Modified: fsf/trunk/libc/argp/argp-parse.c
==============================================================================
--- fsf/trunk/libc/argp/argp-parse.c (original)
+++ fsf/trunk/libc/argp/argp-parse.c Fri Aug 30 00:02:28 2013
@@ -410,7 +410,7 @@
   return group;
 }
 
-/* Find the merged set of getopt options, with keys appropiately prefixed. */
+/* Find the merged set of getopt options, with keys appropriately prefixed. */
 static void
 parser_convert (struct parser *parser, const struct argp *argp, int flags)
 {

Modified: fsf/trunk/libc/debug/backtracesyms.c
==============================================================================
--- fsf/trunk/libc/debug/backtracesyms.c (original)
+++ fsf/trunk/libc/debug/backtracesyms.c Fri Aug 30 00:02:28 2013
@@ -28,7 +28,7 @@
 #if __ELF_NATIVE_CLASS == 32
 # define WORD_WIDTH 8
 #else
-/* We assyme 64bits.  */
+/* We assume 64bits.  */
 # define WORD_WIDTH 16
 #endif
 

Modified: fsf/trunk/libc/elf/elf.h
==============================================================================
--- fsf/trunk/libc/elf/elf.h (original)
+++ fsf/trunk/libc/elf/elf.h Fri Aug 30 00:02:28 2013
@@ -811,7 +811,7 @@
 #define	DF_1_EDITED	0x00200000	/* Object is modified after built.  */
 #define	DF_1_NORELOC	0x00400000
 #define	DF_1_SYMINTPOSE	0x00800000	/* Object has individual interposers.  */
-#define	DF_1_GLOBAUDIT	0x01000000	/* Global auditin required.  */
+#define	DF_1_GLOBAUDIT	0x01000000	/* Global auditing required.  */
 #define	DF_1_SINGLETON	0x02000000	/* Singleton symbols are used.  */
 
 /* Flags for the feature selection in DT_FEATURE_1.  */

Modified: fsf/trunk/libc/libidn/ChangeLog
==============================================================================
--- fsf/trunk/libc/libidn/ChangeLog (original)
+++ fsf/trunk/libc/libidn/ChangeLog Fri Aug 30 00:02:28 2013
@@ -1,3 +1,7 @@
+2013-08-29   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
+
+	* stringprep.c: Fix typos.
+
 2013-06-11   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
 
 	* gunicomp.h: Fix trailing whitespaces.

Modified: fsf/trunk/libc/libidn/stringprep.c
==============================================================================
--- fsf/trunk/libc/libidn/stringprep.c (original)
+++ fsf/trunk/libc/libidn/stringprep.c Fri Aug 30 00:02:28 2013
@@ -563,7 +563,7 @@
  * @STRINGPREP_CONTAINS_PROHIBITED: String contain code points
  *   prohibited by the profile.
  * @STRINGPREP_BIDI_BOTH_L_AND_RAL: String contain code points with
- *   conflicting bidirection category.
+ *   conflicting bidirectional category.
  * @STRINGPREP_BIDI_LEADTRAIL_NOT_RAL: Leading and trailing character
  *   in string not of proper bidirectional category.
  * @STRINGPREP_BIDI_CONTAINS_PROHIBITED: Contains prohibited code

Modified: fsf/trunk/libc/malloc/malloc.c
==============================================================================
--- fsf/trunk/libc/malloc/malloc.c (original)
+++ fsf/trunk/libc/malloc/malloc.c Fri Aug 30 00:02:28 2013
@@ -1167,7 +1167,7 @@
     the malloc code, but "mem" is the pointer that is returned to the
     user.  "Nextchunk" is the beginning of the next contiguous chunk.
 
-    Chunks always begin on even word boundries, so the mem portion
+    Chunks always begin on even word boundaries, so the mem portion
     (which is returned to the user) is also on an even word boundary, and
     thus at least double-word aligned.
 

Modified: fsf/trunk/libc/math/basic-test.c
==============================================================================
--- fsf/trunk/libc/math/basic-test.c (original)
+++ fsf/trunk/libc/math/basic-test.c Fri Aug 30 00:02:28 2013
@@ -148,7 +148,7 @@
   check (#FLOAT " isinf (-HUGE_VALx) == -1", isinf (x1) == -1);		      \
 }
 
-#define TEST_TRUNC(NAME, FLOAT, DOUBLE, SUFFIX)				      \
+#define TEST_CONVERT(NAME, FLOAT, DOUBLE, SUFFIX)			      \
 void									      \
 NAME (void)								      \
 {									      \
@@ -189,11 +189,14 @@
 
 TEST_FUNC (float_test, float, f, FLT_EPSILON, HUGE_VALF)
 TEST_FUNC (double_test, double, , DBL_EPSILON, HUGE_VAL)
-TEST_TRUNC (truncdfsf_test, float, double, )
+TEST_CONVERT (convert_dfsf_test, float, double, )
+TEST_CONVERT (convert_sfdf_test, double, float, f)
 #ifndef NO_LONG_DOUBLE
 TEST_FUNC (ldouble_test, long double, l, LDBL_EPSILON, HUGE_VALL)
-TEST_TRUNC (trunctfsf_test, float, long double, l)
-TEST_TRUNC (trunctfdf_test, double, long double, l)
+TEST_CONVERT (convert_tfsf_test, float, long double, l)
+TEST_CONVERT (convert_sftf_test, long double, float, f)
+TEST_CONVERT (convert_tfdf_test, double, long double, l)
+TEST_CONVERT (convert_dftf_test, long double, double, )
 #endif
 
 int
@@ -201,12 +204,15 @@
 {
   float_test ();
   double_test ();
-  truncdfsf_test();
+  convert_dfsf_test();
+  convert_sfdf_test();
 
 #ifndef NO_LONG_DOUBLE
   ldouble_test ();
-  trunctfsf_test();
-  trunctfdf_test();
+  convert_tfsf_test();
+  convert_sftf_test();
+  convert_tfdf_test();
+  convert_dftf_test();
 #endif
 
   return errors != 0;

Modified: fsf/trunk/libc/nis/nis_print.c
==============================================================================
--- fsf/trunk/libc/nis/nis_print.c (original)
+++ fsf/trunk/libc/nis/nis_print.c Fri Aug 30 00:02:28 2013
@@ -290,7 +290,7 @@
   fputs (_("Linked Object Type : "), stdout);
   nis_print_objtype (obj->li_rtype);
   printf (_("Linked to : %s\n"), obj->li_name);
-  /* XXX Print the attributs here, if they exists */
+  /* XXX Print the attributes here, if they exists */
 }
 libnsl_hidden_def (nis_print_link)
 

Modified: fsf/trunk/libc/ports/ChangeLog.am33
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.am33 (original)
+++ fsf/trunk/libc/ports/ChangeLog.am33 Fri Aug 30 00:02:28 2013
@@ -1,3 +1,7 @@
+2013-08-29   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/am33/bits/fcntl.h: Fix typos.
+
 2013-08-21   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
 
 	* sysdeps/am33/fpu/fraiseexcpt.c: Fix typos.

Modified: fsf/trunk/libc/ports/ChangeLog.arm
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.arm (original)
+++ fsf/trunk/libc/ports/ChangeLog.arm Fri Aug 30 00:02:28 2013
@@ -1,3 +1,16 @@
+2013-08-29  Thomas Schwinge  <thomas@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/arm/ldsodefs.h (VALID_ELF_OSABI)
+	(MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU instead of
+	ELFOSABI_LINUX.
+
+2013-08-28  Kyle McMartin  <kyle@xxxxxxxxxx>
+	    Carlos O'Donell  <carlos@xxxxxxxxxx>
+
+	[BZ #15905]
+	* sysdeps/arm/dl-machine [!RTLD_BOOTSTRAP] (elf_machine_rel):
+	Pass GLRO(dl_hwcap) to the IFUNC resolver.
+
 2013-07-03  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/arm/include/bits/setjmp.h [_ISOMAC] (JMP_BUF_REGLIST):

Modified: fsf/trunk/libc/ports/ChangeLog.ia64
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.ia64 (original)
+++ fsf/trunk/libc/ports/ChangeLog.ia64 Fri Aug 30 00:02:28 2013
@@ -1,3 +1,13 @@
+2013-08-29   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
+
+	* sysdeps/ia64/fpu/e_acoshl.S: Fix typos.
+	* sysdeps/ia64/fpu/e_logf.S: Likewise.
+	* sysdeps/ia64/fpu/e_log.S: Likewise.
+	* sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
+	* sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
+	* sysdeps/ia64/fpu/s_log1p.S: Likewise.
+	* sysdeps/ia64/fpu/w_tgammal.S: Likewise.
+
 2013-08-21   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
 
 	* sysdeps/ia64/fpu/e_atanhl.S: Fix typos.

Modified: fsf/trunk/libc/ports/ChangeLog.mips
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.mips (original)
+++ fsf/trunk/libc/ports/ChangeLog.mips Fri Aug 30 00:02:28 2013
@@ -1,3 +1,12 @@
+2013-08-29  Thomas Schwinge  <thomas@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
+	Use ELFOSABI_GNU instead of ELFOSABI_LINUX.
+
+2013-08-29   OndÃÂej BÃÂlka  <neleai@xxxxxxxxx>
+
+	* sysdeps/mips/sys/asm.h: Fix typos.
+
 2013-08-22  Maciej W. Rozycki  <macro@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/mips/fpu_control.h: Document bits reserved for

Modified: fsf/trunk/libc/ports/sysdeps/arm/dl-machine.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/arm/dl-machine.h (original)
+++ fsf/trunk/libc/ports/sysdeps/arm/dl-machine.h Fri Aug 30 00:02:28 2013
@@ -503,7 +503,7 @@
 	  break;
 	case R_ARM_IRELATIVE:
 	  value = map->l_addr + *reloc_addr;
-	  value = ((Elf32_Addr (*) (void)) value) ();
+	  value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap));
 	  *reloc_addr = value;
 	  break;
 #endif

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_acoshl.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_acoshl.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_acoshl.S Fri Aug 30 00:02:28 2013
@@ -249,7 +249,7 @@
 RODATA
 .align 64
 
-// Near 1 path rational aproximation coefficients
+// Near 1 path rational approximation coefficients
 LOCAL_OBJECT_START(Poly_P)
 data8 0xB0978143F695D40F, 0x3FF1  // .84205539791447100108478906277453574946e-4
 data8 0xB9800D841A8CAD29, 0x3FF6  // .28305085180397409672905983082168721069e-2
@@ -655,7 +655,7 @@
 };;
 
 { .mfi
-      getf.d     GR_Arg       = FR_Arg        // get arument as double (int64)
+      getf.d     GR_Arg       = FR_Arg        // get argument as double (int64)
       fma.s0        FR_Two       = f1, f1, f1    // construct 2.0
       addl       GR_ad_z_1    = @ltoff(Constants_Z_1#),gp // logl tables
 }

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_log.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_log.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_log.S Fri Aug 30 00:02:28 2013
@@ -134,7 +134,7 @@
 //   InvX = frcpa(x)
 //   r = InvX*x - 1
 //   P(r) = r*((r*A3 - A2) + r^4*((A4 + r*A5) + r^2*(A6 + r*A7)),
-//   all coefficients are calcutated in quad and rounded to double
+//   all coefficients are calculated in quad and rounded to double
 //   precision. A7,A6,A5,A4 are stored in memory whereas A3 and A2
 //   created with setf.
 //

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_logf.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_logf.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/e_logf.S Fri Aug 30 00:02:28 2013
@@ -159,7 +159,7 @@
 //
 // 3. How we define is input argument such that |x-1| < 1/256 or not.
 //
-//    To do it we analyze biased exponent and significand of input argment.
+//    To do it we analyze biased exponent and significand of input argument.
 //
 //      a) First we test is biased exponent equal to 0xFFFE or 0xFFFF (i.e.
 //         we test is 0.5 <= x < 2). This comparison can be performed using

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S Fri Aug 30 00:02:28 2013
@@ -1064,7 +1064,7 @@
 { .mfi
       ldfpd         FR_Ln2,FR_05 = [GR_ad_Data],16
       fma.s1        FR_P32 = FR_P3,FR_r,FR_P2
-      // input argument cann't be equal to 1.0
+      // input argument can't be equal to 1.0
       cmp.eq        p0,p14 = r0,r0
 };;
 { .mfi
@@ -1456,7 +1456,7 @@
       // load coefficients of polynomial approximation
       // of ln(GAMMA(x)), x is close to one of negative roots
 (p13) ldfpd         FR_R3,FR_R2 = [GR_ad_RootCo]
-      // argumenth for logarithm
+      // arguments for logarithm
 (p10) fma.s1        FR_Req = FR_Req,FR_Xp2,f0
       mov           GR_ExpMask = 0x1ffff
 }

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S Fri Aug 30 00:02:28 2013
@@ -1334,7 +1334,7 @@
 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 LOCAL_OBJECT_START(lgammal_right_roots_polynomial_data)
 // Polynomial coefficients for right root on [-3, -2]
-// Lgammal is aproximated by polynomial within [-.056244 ; .158208 ] range
+// Lgammal is approximated by polynomial within [-.056244 ; .158208 ] range
 data8 0xBBBD5E9DCD11030B, 0xB867411D9FF87DD4 //A0
 data8 0x3FF83FE966AF535E, 0x3CAA21235B8A769A //A1
 data8 0x40136EEBB002F55C, 0x3CC3959A6029838E //A2
@@ -1356,7 +1356,7 @@
 data8 0x40E52739AB005641 //A18
 data8 0x41161E3E6DDF503A //A19
 // Polynomial coefficients for right root on [-4, -3]
-// Lgammal is aproximated by polynomial within [-.172797 ; .171573 ] range
+// Lgammal is approximated by polynomial within [-.172797 ; .171573 ] range
 data8 0x3C172712B248E42E, 0x38CB8D17801A5D67 //A0
 data8 0x401F20A65F2FAC54, 0x3CCB9EA1817A824E //A1
 data8 0x4039D4D2977150EF, 0x3CDA42E149B6276A //A2
@@ -1378,7 +1378,7 @@
 data8 0x42D462D1586DE61F //A18
 data8 0x42FBB1228D6C5118 //A19
 // Polynomial coefficients for right root on [-5, -4]
-// Lgammal is aproximated by polynomial within [-.163171 ; .161988 ] range
+// Lgammal is approximated by polynomial within [-.163171 ; .161988 ] range
 data8 0x3C5840FBAFDEE5BB, 0x38CAC0336E8C490A //A0
 data8 0x403ACA5CF4921642, 0x3CCEDCDDA5491E56 //A1
 data8 0x40744415CD813F8E, 0x3CFBFEBC17E39146 //A2
@@ -1400,7 +1400,7 @@
 data8 0x44EF06A31E39EEDF //A18
 data8 0x45333774C99F523F //A19
 // Polynomial coefficients for right root on [-6, -5]
-// Lgammal is aproximated by polynomial within [-.156450 ; .156126 ] range
+// Lgammal is approximated by polynomial within [-.156450 ; .156126 ] range
 data8 0x3C71B82D6B2B3304, 0x3917186E3C0DC231 //A0
 data8 0x405ED72E0829AE02, 0x3C960C25157980EB //A1
 data8 0x40BCECC32EC22F9B, 0x3D5D8335A32F019C //A2
@@ -1422,7 +1422,7 @@
 data8 0x4778D360873C9F64 //A18
 data8 0x47E26965BE9A682A //A19
 // Polynomial coefficients for right root on [-7, -6]
-// Lgammal is aproximated by polynomial within [-.154582 ; .154521 ] range
+// Lgammal is approximated by polynomial within [-.154582 ; .154521 ] range
 data8 0x3C75F103A1B00A48, 0x391C041C190C726D //A0
 data8 0x40869DE49E3AF2AA, 0x3D1C17E1F813063B //A1
 data8 0x410FCE23484CFD10, 0x3DB6F38C2F11DAB9 //A2
@@ -1444,7 +1444,7 @@
 data8 0x4A5D38E8C35EFF45 //A18
 data8 0x4AF0123E89694CD8 //A19
 // Polynomial coefficients for right root on [-8, -7]
-// Lgammal is aproximated by polynomial within [-.154217 ; .154208 ] range
+// Lgammal is approximated by polynomial within [-.154217 ; .154208 ] range
 data8 0xBCD2507D818DDD68, 0xB97F6940EA2871A0 //A0
 data8 0x40B3B407AA387BCB, 0x3D6320238F2C43D1 //A1
 data8 0x41683E85DAAFBAC7, 0x3E148D085958EA3A //A2
@@ -1466,7 +1466,7 @@
 data8 0x4D8450A345B0FB49 //A18
 data8 0x4E43825848865DB2 //A19
 // Polynomial coefficients for right root on [-9, -8]
-// Lgammal is aproximated by polynomial within [-.154160 ; .154158 ] range
+// Lgammal is approximated by polynomial within [-.154160 ; .154158 ] range
 data8 0x3CDF4358564F2B46, 0x397969BEE6042F81 //A0
 data8 0x40E3B088FED67721, 0x3D82787BA937EE85 //A1
 data8 0x41C83A3893550EF4, 0x3E542ED57E244DA8 //A2
@@ -1488,7 +1488,7 @@
 data8 0x50E4304A8E68A730 //A18
 data8 0x51D3618FB2EC9F93 //A19
 // Polynomial coefficients for right root on [-10, -9]
-// Lgammal is aproximated by polynomial within [-.154152 ; .154152 ] range
+// Lgammal is approximated by polynomial within [-.154152 ; .154152 ] range
 data8 0x3D42F34DA97ECF0C, 0x39FD1256F345B0D0 //A0
 data8 0x4116261203919787, 0x3DC12D44055588EB //A1
 data8 0x422EA8F32FB7FE99, 0x3ED849CE4E7B2D77 //A2
@@ -1510,7 +1510,7 @@
 data8 0x5475022FE21215B2 //A18
 data8 0x5596B02BF6C5E19B //A19
 // Polynomial coefficients for right root on [-11, -10]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0x3D7AA9C2E2B1029C, 0x3A15FB37578544DB //A0
 data8 0x414BAF825A0C91D4, 0x3DFB9DA2CE398747 //A1
 data8 0x4297F3EC8AE0AF03, 0x3F34208B55FB8781 //A2
@@ -1532,7 +1532,7 @@
 data8 0x5832385DF86AD28A //A18
 data8 0x598898914B4D6523 //A19
 // Polynomial coefficients for right root on [-12, -11]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0xBD96F61647C58B03, 0xBA3ABB0C2A6C755B //A0
 data8 0x418308A82714B70D, 0x3E1088FC6A104C39 //A1
 data8 0x4306A493DD613C39, 0x3FB2341ECBF85741 //A2
@@ -1554,7 +1554,7 @@
 data8 0x5C15F75EF7E08EBD //A18
 data8 0x5DA462EA902F0C90 //A19
 // Polynomial coefficients for right root on [-13, -12]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0x3DC3191752ACFC9D, 0x3A26CB6629532DBF //A0
 data8 0x41BC8CFC051191BD, 0x3E68A84DA4E62AF2 //A1
 data8 0x43797926294A0148, 0x400F345FF3723CFF //A2
@@ -1576,7 +1576,7 @@
 data8 0x601FB3F17BCCD9A0 //A18
 data8 0x61E61128D512FE97 //A1
 // Polynomial coefficients for right root on [-14, -13]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0xBE170D646421B3F5, 0xBAAD95F79FCB5097 //A0
 data8 0x41F7328CBFCD9AC7, 0x3E743B8B1E8AEDB1 //A1
 data8 0x43F0D0FA2DBDA237, 0x40A0422D6A227B55 //A2
@@ -1598,7 +1598,7 @@
 data8 0x6448289235E80977 //A18
 data8 0x664B5352C6C3449E //A19
 // Polynomial coefficients for right root on [-15, -14]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0x3E562C2E34A9207D, 0x3ADC00DA3DFF7A83 //A0
 data8 0x42344C3B2F0D90AB, 0x3EB8A2E979F24536 //A1
 data8 0x4469BFFF28B50D07, 0x41181E3D05C1C294 //A2
@@ -1620,7 +1620,7 @@
 data8 0x689178710782FA8B //A18
 data8 0x6AD14A66C1C7BEC3 //A19
 // Polynomial coefficients for right root on [-16, -15]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0xBE6D7E7192615BAE, 0xBB0137677D7CC719 //A0
 data8 0x4273077763F6628C, 0x3F09250FB8FC8EC9 //A1
 data8 0x44E6A1BF095B1AB3, 0x4178D5A74F6CB3B3 //A2
@@ -1642,7 +1642,7 @@
 data8 0x6CF5DEB3073B0743 //A18
 data8 0x6F744AC11550B93A //A19
 // Polynomial coefficients for right root on [-17, -16]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0xBEDCC6291188207E, 0xBB872E3FDD48F5B7 //A0
 data8 0x42B3076EE7525EF9, 0x3F6687A5038CA81C //A1
 data8 0x4566A1AAD96EBCB5, 0x421F0FEDFBF548D2 //A2
@@ -1664,7 +1664,7 @@
 data8 0x7175DE20D04617C4 //A18
 data8 0x74344AB87C6D655F //A19
 // Polynomial coefficients for right root on [-18, -17]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0xBF28AEEE7B61D77C, 0xBBDBBB5FC57ABF79 //A0
 data8 0x42F436F56B3B8A0C, 0x3FA43EE3C5C576E9 //A1
 data8 0x45E98A22535D115D, 0x42984678BE78CC48 //A2
@@ -1686,7 +1686,7 @@
 data8 0x76103C6ED099192A //A18
 data8 0x79100C7132CFD6E3 //A19
 // Polynomial coefficients for right root on [-19, -18]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0x3F3C19A53328A0C3, 0x3BE04ADC3FBE1458 //A0
 data8 0x4336C16C16C16C19, 0x3FE58CE3AC4A7C28 //A1
 data8 0x46702E85C0898B70, 0x432C922E412CEC6E //A2
@@ -1708,7 +1708,7 @@
 data8 0x7AC1110C6D350440 //A18
 data8 0x7E02D0971CF84865 //A19
 // Polynomial coefficients for right root on [-20, -19]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
 data8 0xBFAB767F9BE21803, 0xBC5ACEF5BB1BD8B5 //A0
 data8 0x4379999999999999, 0x4029241C7F5914C8 //A1
 data8 0x46F47AE147AE147A, 0x43AC2979B64B9D7E //A2
@@ -1733,7 +1733,7 @@
 
 LOCAL_OBJECT_START(lgammal_left_roots_polynomial_data)
 // Polynomial coefficients for left root on [-3, -2]
-// Lgammal is aproximated by polynomial within [.084641 ; -.059553 ] range
+// Lgammal is approximated by polynomial within [.084641 ; -.059553 ] range
 data8 0xBC0844590979B82E, 0xB8BC7CE8CE2ECC3B //A0
 data8 0xBFFEA12DA904B18C, 0xBC91A6B2BAD5EF6E //A1
 data8 0x4023267F3C265A51, 0x3CD7055481D03AED //A2
@@ -1756,7 +1756,7 @@
 data8 0xC20812C297729142 //A19
 //
 // Polynomial coefficients for left root on [-4, -3]
-// Lgammal is aproximated by polynomial within [.147147 ; -.145158 ] range
+// Lgammal is approximated by polynomial within [.147147 ; -.145158 ] range
 data8 0xBC3130AE5C4F54DB, 0xB8ED23294C13398A //A0
 data8 0xC034B99D966C5646, 0xBCE2E5FE3BC3DBB9 //A1
 data8 0x406F76DEAE0436BD, 0x3D14974DDEC057BD //A2
@@ -1778,7 +1778,7 @@
 data8 0x44B92CD4D59D6D17 //A18
 data8 0xC4FB3A078B5247FA //A19
 // Polynomial coefficients for left root on [-5, -4]
-// Lgammal is aproximated by polynomial within [.155671 ; -.155300 ] range
+// Lgammal is approximated by polynomial within [.155671 ; -.155300 ] range
 data8 0xBC57BF3C6E8A94C1, 0xB902FB666934AC9E //A0
 data8 0xC05D224A3EF9E41F, 0xBCF6F5713913E440 //A1
 data8 0x40BB533C678A3955, 0x3D688E53E3C72538 //A2
@@ -1800,7 +1800,7 @@
 data8 0x476DD7C07184B9F9 //A18
 data8 0xC7D554A30085C052 //A19
 // Polynomial coefficients for left root on [-6, -5]
-// Lgammal is aproximated by polynomial within [.157425 ; -.157360 ] range
+// Lgammal is approximated by polynomial within [.157425 ; -.157360 ] range
 data8 0x3C9E20A87C8B79F1, 0x39488BE34B2427DB //A0
 data8 0xC08661F6A43A5E12, 0xBD3D912526D759CC //A1
 data8 0x410F79DCB794F270, 0x3DB9BEE7CD3C1BF5 //A2
@@ -1822,7 +1822,7 @@
 data8 0x4A5AB127C62E8DA1 //A18
 data8 0xCAECF60EF3183C57 //A19
 // Polynomial coefficients for left root on [-7, -6]
-// Lgammal is aproximated by polynomial within [.157749 ; -.157739 ] range
+// Lgammal is approximated by polynomial within [.157749 ; -.157739 ] range
 data8 0x3CC9B9E8B8D551D6, 0x3961813C8E1E10DB //A0
 data8 0xC0B3ABF7A5CEA91F, 0xBD55638D4BCB4CC4 //A1
 data8 0x4168349A25504236, 0x3E0287ECE50CCF76 //A2
@@ -1844,7 +1844,7 @@
 data8 0x4D841613AC3431D1 //A18
 data8 0xCE431C9E9EE43AD9 //A19
 // Polynomial coefficients for left root on [-8, -7]
-// Lgammal is aproximated by polynomial within [.157799 ; -.157798 ] range
+// Lgammal is approximated by polynomial within [.157799 ; -.157798 ] range
 data8 0xBCF9C7A33AD9478C, 0xB995B0470F11E5ED //A0
 data8 0xC0E3AF76FE4C2F8B, 0xBD8DBCD503250511 //A1
 data8 0x41C838E76CAAF0D5, 0x3E5D79F5E2E069C3 //A2
@@ -1866,7 +1866,7 @@
 data8 0x50E4364CCBF53100 //A18
 data8 0xD1D33CFD0BF96FA6 //A19
 // Polynomial coefficients for left root on [-9, -8]
-// Lgammal is aproximated by polynomial within [.157806 ; -.157806 ] range
+// Lgammal is approximated by polynomial within [.157806 ; -.157806 ] range
 data8 0x3D333E4438B1B9D4, 0x39E7B956B83964C1 //A0
 data8 0xC11625EDFC63DCD8, 0xBDCF39625709EFAC //A1
 data8 0x422EA8C150480F16, 0x3EC16ED908AB7EDD //A2
@@ -1888,7 +1888,7 @@
 data8 0x547511892FF8960E //A18
 data8 0xD5968FA3B1ED67A9 //A19
 // Polynomial coefficients for left root on [-10, -9]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBD355818A2B42BA2, 0xB9B7320B6A0D61EA //A0
 data8 0xC14BAF7DA5F3770E, 0xBDE64AF9A868F719 //A1
 data8 0x4297F3E8791F9CD3, 0x3F2A553E59B4835E //A2
@@ -1910,7 +1910,7 @@
 data8 0x5832469D58ED3FA9 //A18
 data8 0xD988769F3DC76642 //A19
 // Polynomial coefficients for left root on [-11, -10]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBDA050601F39778A, 0xBA0D4D1CE53E8241 //A0
 data8 0xC18308A7D8EA4039, 0xBE370C379D3EAD41 //A1
 data8 0x4306A49380644E6C, 0x3FBBB143C0E7B5C8 //A2
@@ -1932,7 +1932,7 @@
 data8 0x5C1608AAC32C3A8E //A18
 data8 0xDDA446E570A397D5 //A19
 // Polynomial coefficients for left root on [-12, -11]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0x3DEACBB3081C502E, 0x3A8AA6F01DEDF745 //A0
 data8 0xC1BC8CFBFB0A9912, 0xBE6556B6504A2AE6 //A1
 data8 0x43797926206941D7, 0x40289A9644C2A216 //A2
@@ -1954,7 +1954,7 @@
 data8 0x601FCCEC1BBD25F1 //A18
 data8 0xE1E5F2D76B610920 //A19
 // Polynomial coefficients for left root on [-13, -12]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBE01612F373268ED, 0xBA97B7A18CDF103B //A0
 data8 0xC1F7328CBF7A4FAC, 0xBE89A25A6952F481 //A1
 data8 0x43F0D0FA2DBDA237, 0x40A0422EC1CE6084 //A2
@@ -1976,7 +1976,7 @@
 data8 0x64483B9B62367EB7 //A18
 data8 0xE64B2DC830E8A799 //A1
 // Polynomial coefficients for left root on [-14, -13]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0x3E563D0B930B371F, 0x3AE779957E14F012 //A0
 data8 0xC2344C3B2F083767, 0xBEC0B7769AA3DD66 //A1
 data8 0x4469BFFF28B50D07, 0x41181E3F13ED2401 //A2
@@ -1998,7 +1998,7 @@
 data8 0x689186351E58AA88 //A18
 data8 0xEAD132A585DFC60A //A19
 // Polynomial coefficients for left root on [-15, -14]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBE6D7DDE12700AC1, 0xBB1E025BF1667FB5 //A0
 data8 0xC273077763F60AD5, 0xBF2A1698184C7A9A //A1
 data8 0x44E6A1BF095B1AB3, 0x4178D5AE8A4A2874 //A2
@@ -2020,7 +2020,7 @@
 data8 0x6CF5EFEE929A0928 //A18
 data8 0xEF742EE03EC3E8FF //A19
 // Polynomial coefficients for left root on [-16, -15]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBEDCC628FEAC7A1B, 0xBB80582C8BEBB198 //A0
 data8 0xC2B3076EE752595E, 0xBF5388F55AFAE53E //A1
 data8 0x4566A1AAD96EBCB5, 0x421F0FEFE2444293 //A2
@@ -2042,7 +2042,7 @@
 data8 0x7175EF5D1080B105 //A18
 data8 0xF4342ED7B1B7BE31 //A19
 // Polynomial coefficients for left root on [-17, -16]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBF28AEEE7B58C790, 0xBBC4448DE371FA0A //A0
 data8 0xC2F436F56B3B89B1, 0xBF636755245AC63A //A1
 data8 0x45E98A22535D115D, 0x4298467DA93DB784 //A2
@@ -2064,7 +2064,7 @@
 data8 0x76104951BAD67D5C //A18
 data8 0xF90FECC99786FD5B //A19
 // Polynomial coefficients for left root on [-18, -17]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0x3F3C19A53328E26A, 0x3BE238D7BA036B3B //A0
 data8 0xC336C16C16C16C13, 0xBFEACE245DEC56F3 //A1
 data8 0x46702E85C0898B70, 0x432C922B64FD1DA4 //A2
@@ -2086,7 +2086,7 @@
 data8 0x7AC11E468A134A51 //A18
 data8 0xFE02B6BDD0FC40AA //A19
 // Polynomial coefficients for left root on [-19, -18]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
 data8 0xBFAB767F9BE217FC, 0xBC4A5541CE0D8D0D //A0
 data8 0xC379999999999999, 0xC01A84981B490BE8 //A1
 data8 0x46F47AE147AE147A, 0x43AC2987BBC466EB //A2

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/s_log1p.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/s_log1p.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/s_log1p.S Fri Aug 30 00:02:28 2013
@@ -103,7 +103,7 @@
 //   InvX = frcpa(x+1)
 //   r = InvX*(x+1) - 1
 //   P(r) = r*((r*A3 - A2) + r^4*((A4 + r*A5) + r^2*(A6 + r*A7)),
-//   all coefficients are calcutated in quad and rounded to double
+//   all coefficients are calculated in quad and rounded to double
 //   precision. A7,A6,A5,A4 are stored in memory whereas A3 and A2
 //   created with setf.
 //

Modified: fsf/trunk/libc/ports/sysdeps/ia64/fpu/w_tgammal.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/fpu/w_tgammal.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/fpu/w_tgammal.S Fri Aug 30 00:02:28 2013
@@ -1629,7 +1629,7 @@
 
 { .mfi
       nop.m         0
-      fma.s1        FR_l_B14       = FR_l_B16, FR_l_Z2, FR_l_B14// bernulli tail
+      fma.s1        FR_l_B14       = FR_l_B16, FR_l_Z2, FR_l_B14// Bernoulli tail
       nop.i         0
 }
 { .mfi
@@ -1640,18 +1640,18 @@
 
 { .mfi
       nop.m         0
-      fma.s1        FR_l_B2        = FR_l_B4, FR_l_Z2, FR_l_B2 // bernulli tail
-      nop.i         0
-}
-{ .mfi
-      nop.m         0
-      fma.s1        FR_l_B6        = FR_l_B8, FR_l_Z2, FR_l_B6 // bernulli tail
-      nop.i         0
-};;
-
-{ .mfi
-      nop.m         0
-      fma.s1        FR_l_B10       = FR_l_B12, FR_l_Z2, FR_l_B10// bernulli tail
+      fma.s1        FR_l_B2        = FR_l_B4, FR_l_Z2, FR_l_B2 // Bernoulli tail
+      nop.i         0
+}
+{ .mfi
+      nop.m         0
+      fma.s1        FR_l_B6        = FR_l_B8, FR_l_Z2, FR_l_B6 // Bernoulli tail
+      nop.i         0
+};;
+
+{ .mfi
+      nop.m         0
+      fma.s1        FR_l_B10       = FR_l_B12, FR_l_Z2, FR_l_B10// Bernoulli tail
       nop.i         0
 }
 { .mfi
@@ -1795,7 +1795,7 @@
 
 { .mfi
       nop.m         0
-      fma.s1        FR_l_SS        = FR_l_B10, FR_l_Z8, FR_l_B2 // bernulli tail
+      fma.s1        FR_l_SS        = FR_l_B10, FR_l_Z8, FR_l_B2 // Bernoulli tail
       nop.i         0
 };;
 

Modified: fsf/trunk/libc/ports/sysdeps/mips/sys/asm.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/sys/asm.h (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/sys/asm.h Fri Aug 30 00:02:28 2013
@@ -472,7 +472,7 @@
 # define MTC0	dmtc0
 #endif
 
-/* The MIPS archtectures do not have a uniform memory model.  Particular
+/* The MIPS architectures do not have a uniform memory model.  Particular
    platforms may provide additional guarantees - for instance, the R4000
    LL and SC instructions implicitly perform a SYNC, and the 4K promises
    strong ordering.

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h Fri Aug 30 00:02:28 2013
@@ -130,7 +130,7 @@
 # define DN_CREATE	0x00000004	/* File created.  */
 # define DN_DELETE	0x00000008	/* File removed.  */
 # define DN_RENAME	0x00000010	/* File renamed.  */
-# define DN_ATTRIB	0x00000020	/* File changed attibutes.  */
+# define DN_ATTRIB	0x00000020	/* File changed attributes.  */
 # define DN_MULTISHOT	0x80000000	/* Don't remove notifier.  */
 #endif
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h Fri Aug 30 00:02:28 2013
@@ -44,8 +44,8 @@
     || memcmp (hdr, expected3, size) == 0)	\
    && VALID_FLOAT_ABI (ehdr->e_flags))
 #define VALID_ELF_OSABI(osabi)		(osabi == ELFOSABI_SYSV		\
-					 || osabi == EXTRA_OSABI	\
-					 || osabi == ELFOSABI_LINUX)
+					 || osabi == ELFOSABI_GNU	\
+					 || osabi == EXTRA_OSABI)
 #define MORE_ELF_HEADER_DATA				\
   static const unsigned char expected2[EI_PAD] =	\
   {							\
@@ -56,7 +56,7 @@
     [EI_CLASS] = ELFW(CLASS),				\
     [EI_DATA] = byteorder,				\
     [EI_VERSION] = EV_CURRENT,				\
-    [EI_OSABI] = ELFOSABI_LINUX				\
+    [EI_OSABI] = ELFOSABI_GNU				\
   };							\
   static const unsigned char expected3[EI_PAD] =	\
   {							\

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h Fri Aug 30 00:02:28 2013
@@ -30,11 +30,11 @@
 #define DL_STATIC_INIT(map) _dl_static_init (map)
 
 /* Allow ABIVERSION == 1, meaning PLTs and copy relocations are
-   required, with ELFOSABI_SYSV.  */
+   required, with ELFOSABI_SYSV, and ELFOSABI_GNU.  */
 #undef VALID_ELF_ABIVERSION
 #define VALID_ELF_ABIVERSION(osabi,ver)			\
   (ver == 0						\
    || (osabi == ELFOSABI_SYSV && ver < 2)		\
-   || (osabi == ELFOSABI_LINUX && ver < LIBC_ABI_MAX))
+   || (osabi == ELFOSABI_GNU && ver < LIBC_ABI_MAX))
 
 #endif /* ldsodefs.h */

Modified: fsf/trunk/libc/resolv/res_comp.c
==============================================================================
--- fsf/trunk/libc/resolv/res_comp.c (original)
+++ fsf/trunk/libc/resolv/res_comp.c Fri Aug 30 00:02:28 2013
@@ -81,7 +81,7 @@
 
 /*
  * Expand compressed domain name 'comp_dn' to full domain name.
- * 'msg' is a pointer to the begining of the message,
+ * 'msg' is a pointer to the beginning of the message,
  * 'eomorig' points to the first location after the message,
  * 'exp_dn' is a pointer to a buffer of size 'length' for the result.
  * Return size of compressed name or -1 if there was an error.

Modified: fsf/trunk/libc/stdlib/stdlib.h
==============================================================================
--- fsf/trunk/libc/stdlib/stdlib.h (original)
+++ fsf/trunk/libc/stdlib/stdlib.h Fri Aug 30 00:02:28 2013
@@ -927,7 +927,7 @@
    Call after grantpt().  */
 extern int unlockpt (int __fd) __THROW;
 
-/* Return the pathname of the pseudo terminal slave assoicated with
+/* Return the pathname of the pseudo terminal slave associated with
    the master FD is open on, or NULL on errors.
    The returned storage is good until the next call to this function.  */
 extern char *ptsname (int __fd) __THROW __wur;

Modified: fsf/trunk/libc/stdlib/strtod_l.c
==============================================================================
--- fsf/trunk/libc/stdlib/strtod_l.c (original)
+++ fsf/trunk/libc/stdlib/strtod_l.c Fri Aug 30 00:02:28 2013
@@ -42,11 +42,10 @@
 # define SET_MANTISSA(flt, mant) \
   do { union ieee754_double u;						      \
        u.d = (flt);							      \
-       if ((mant & 0xfffffffffffffULL) == 0)				      \
-	 mant = 0x8000000000000ULL;					      \
-       u.ieee.mantissa0 = ((mant) >> 32) & 0xfffff;			      \
-       u.ieee.mantissa1 = (mant) & 0xffffffff;				      \
-       (flt) = u.d;							      \
+       u.ieee_nan.mantissa0 = (mant) >> 32;				      \
+       u.ieee_nan.mantissa1 = (mant);					      \
+       if ((u.ieee.mantissa0 | u.ieee.mantissa1) != 0)			      \
+	 (flt) = u.d;							      \
   } while (0)
 #endif
 /* End of configuration part.  */

Modified: fsf/trunk/libc/stdlib/strtof_l.c
==============================================================================
--- fsf/trunk/libc/stdlib/strtof_l.c (original)
+++ fsf/trunk/libc/stdlib/strtof_l.c Fri Aug 30 00:02:28 2013
@@ -37,10 +37,9 @@
 #define SET_MANTISSA(flt, mant) \
   do { union ieee754_float u;						      \
        u.f = (flt);							      \
-       if ((mant & 0x7fffff) == 0)					      \
-	 mant = 0x400000;						      \
-       u.ieee.mantissa = (mant) & 0x7fffff;				      \
-       (flt) = u.f;							      \
+       u.ieee_nan.mantissa = (mant);					      \
+       if (u.ieee.mantissa != 0)					      \
+	 (flt) = u.f;							      \
   } while (0)
 
 #include "strtod_l.c"

Modified: fsf/trunk/libc/stdlib/tst-strtod6.c
==============================================================================
--- fsf/trunk/libc/stdlib/tst-strtod6.c (original)
+++ fsf/trunk/libc/stdlib/tst-strtod6.c Fri Aug 30 00:02:28 2013
@@ -4,11 +4,12 @@
 #include <string.h>
 
 static int
-do_test (void)
+test (const char str[])
 {
-  static const char str[] = "NaN(blabla)something";
   char *endp;
   int result = 0;
+
+  puts (str);
 
   double d = strtod (str, &endp);
   if (!isnan (d))
@@ -64,5 +65,24 @@
   return result;
 }
 
+static int
+do_test (void)
+{
+  int result = 0;
+
+  result |= test ("NaN(blabla)something");
+  result |= test ("NaN(1234)something");
+  /* UINT32_MAX.  */
+  result |= test ("NaN(4294967295)something");
+  /* UINT64_MAX.  */
+  result |= test ("NaN(18446744073709551615)something");
+  /* The case of zero is special in that "something" has to be done to make the
+     mantissa different from zero, which would mean infinity instead of
+     NaN.  */
+  result |= test ("NaN(0)something");
+
+  return result;
+}
+
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"

Modified: fsf/trunk/libc/sunrpc/clnt_tcp.c
==============================================================================
--- fsf/trunk/libc/sunrpc/clnt_tcp.c (original)
+++ fsf/trunk/libc/sunrpc/clnt_tcp.c Fri Aug 30 00:02:28 2013
@@ -410,7 +410,7 @@
       /*
        * This RELIES on the information that, in the call body,
        * the version number field is the fifth field from the
-       * begining of the RPC header. MUST be changed if the
+       * beginning of the RPC header. MUST be changed if the
        * call_struct is changed
        */
       memcpy (&ui32, ct->ct_mcall + 4 * BYTES_PER_XDR_UNIT, sizeof (ui32));
@@ -426,7 +426,7 @@
       /*
        * This RELIES on the information that, in the call body,
        * the program number field is the  field from the
-       * begining of the RPC header. MUST be changed if the
+       * beginning of the RPC header. MUST be changed if the
        * call_struct is changed
        */
       memcpy (&ui32, ct->ct_mcall + 3 * BYTES_PER_XDR_UNIT, sizeof (ui32));

Modified: fsf/trunk/libc/sunrpc/clnt_udp.c
==============================================================================
--- fsf/trunk/libc/sunrpc/clnt_udp.c (original)
+++ fsf/trunk/libc/sunrpc/clnt_udp.c Fri Aug 30 00:02:28 2013
@@ -598,7 +598,7 @@
       /*
        * This RELIES on the information that, in the call body,
        * the version number field is the fifth field from the
-       * begining of the RPC header. MUST be changed if the
+       * beginning of the RPC header. MUST be changed if the
        * call_struct is changed
        */
       memcpy (&ui32, cu->cu_outbuf + 4 * BYTES_PER_XDR_UNIT, sizeof (ui32));
@@ -614,7 +614,7 @@
       /*
        * This RELIES on the information that, in the call body,
        * the program number field is the  field from the
-       * begining of the RPC header. MUST be changed if the
+       * beginning of the RPC header. MUST be changed if the
        * call_struct is changed
        */
       memcpy (&ui32, cu->cu_outbuf + 3 * BYTES_PER_XDR_UNIT, sizeof (ui32));

Modified: fsf/trunk/libc/sunrpc/clnt_unix.c
==============================================================================
--- fsf/trunk/libc/sunrpc/clnt_unix.c (original)
+++ fsf/trunk/libc/sunrpc/clnt_unix.c Fri Aug 30 00:02:28 2013
@@ -382,7 +382,7 @@
       /*
        * This RELIES on the information that, in the call body,
        * the version number field is the fifth field from the
-       * begining of the RPC header. MUST be changed if the
+       * beginning of the RPC header. MUST be changed if the
        * call_struct is changed
        */
       memcpy (&ui32, ct->ct_mcall + 4 * BYTES_PER_XDR_UNIT, sizeof (ui32));
@@ -398,7 +398,7 @@
       /*
        * This RELIES on the information that, in the call body,
        * the program number field is the  field from the
-       * begining of the RPC header. MUST be changed if the
+       * beginning of the RPC header. MUST be changed if the
        * call_struct is changed
        */
       memcpy (&ui32, ct->ct_mcall + 3 * BYTES_PER_XDR_UNIT, sizeof (ui32));

Added: fsf/trunk/libc/sysdeps/gnu/ldsodefs.h
==============================================================================
--- fsf/trunk/libc/sysdeps/gnu/ldsodefs.h (added)
+++ fsf/trunk/libc/sysdeps/gnu/ldsodefs.h Fri Aug 30 00:02:28 2013
@@ -1,0 +1,48 @@
+/* Run-time dynamic linker data structures for loaded ELF shared objects.  GNU.
+   Copyright (C) 2001-2013 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, see
+   <http://www.gnu.org/licenses/>.  */
+
+#ifndef _GNU_LDSODEFS_H
+#define _GNU_LDSODEFS_H 1
+
+#include <elf.h>
+#include <libc-abis.h>
+#include <string.h>
+
+/* Accept binaries which identify the binary as using GNU extensions.  */
+#define VALID_ELF_HEADER(hdr,exp,size)	(memcmp (hdr, exp, size) == 0	\
+					 || memcmp (hdr, expected2, size) == 0)
+#define VALID_ELF_OSABI(osabi)		(osabi == ELFOSABI_SYSV \
+					 || osabi == ELFOSABI_GNU)
+#define VALID_ELF_ABIVERSION(osabi,ver) \
+  (ver == 0 || (osabi == ELFOSABI_GNU && ver < LIBC_ABI_MAX))
+#define MORE_ELF_HEADER_DATA \
+  static const unsigned char expected2[EI_PAD] =	\
+  {							\
+    [EI_MAG0] = ELFMAG0,				\
+    [EI_MAG1] = ELFMAG1,				\
+    [EI_MAG2] = ELFMAG2,				\
+    [EI_MAG3] = ELFMAG3,				\
+    [EI_CLASS] = ELFW(CLASS),				\
+    [EI_DATA] = byteorder,				\
+    [EI_VERSION] = EV_CURRENT,				\
+    [EI_OSABI] = ELFOSABI_GNU				\
+  }
+
+#include_next <ldsodefs.h>
+
+#endif /* _GNU_LDSODEFS_H */

Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-128/strtold_l.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-128/strtold_l.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-128/strtold_l.c Fri Aug 30 00:02:28 2013
@@ -34,11 +34,13 @@
 #define SET_MANTISSA(flt, mant) \
   do { union ieee854_long_double u;					      \
        u.d = (flt);							      \
-       u.ieee.mantissa0 = 0x8000;					      \
-       u.ieee.mantissa1 = 0;						      \
-       u.ieee.mantissa2 = ((mant) >> 32);	      			      \
-       u.ieee.mantissa3 = (mant) & 0xffffffff;				      \
-       (flt) = u.d;							      \
+       u.ieee_nan.mantissa0 = 0;					      \
+       u.ieee_nan.mantissa1 = 0;					      \
+       u.ieee_nan.mantissa2 = (mant) >> 32;				      \
+       u.ieee_nan.mantissa3 = (mant);					      \
+       if ((u.ieee.mantissa0 | u.ieee.mantissa1				      \
+	    | u.ieee.mantissa2 | u.ieee.mantissa3) != 0)		      \
+	 (flt) = u.d;							      \
   } while (0)
 
 #include <strtod_l.c>

Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/ieee754.h
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/ieee754.h (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/ieee754.h Fri Aug 30 00:02:28 2013
@@ -199,6 +199,25 @@
 	unsigned int mantissa2:20;
 	unsigned int mantissa3:32;
       } ieee;
+
+    /* This format makes it easier to see if a NaN is a signalling NaN.  */
+    struct
+      { /* Big endian.  There is no other.  */
+
+	unsigned int negative:1;
+	unsigned int exponent:11;
+	unsigned int quiet_nan:1;
+	/* Together Mantissa0-3 comprise the mantissa.  */
+	unsigned int mantissa0:19;
+	unsigned int mantissa1:32;
+
+	unsigned int negative2:1;
+	unsigned int exponent2:11;
+	/* There is an implied 1 here?  */
+	/* Together these comprise the mantissa.  */
+	unsigned int mantissa2:20;
+	unsigned int mantissa3:32;
+      } ieee_nan;
    };
 
 #define IBM_EXTENDED_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent.  */

Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/strtold_l.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/strtold_l.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-128ibm/strtold_l.c Fri Aug 30 00:02:28 2013
@@ -44,11 +44,10 @@
 # define SET_MANTISSA(flt, mant) \
   do { union ibm_extended_long_double u;				      \
        u.d = (flt);							      \
-       if ((mant & 0xfffffffffffffULL) == 0)				      \
-	 mant = 0x8000000000000ULL;					      \
-       u.ieee.mantissa0 = ((mant) >> 32) & 0xfffff;			      \
-       u.ieee.mantissa1 = (mant) & 0xffffffff;				      \
-       (flt) = u.d;							      \
+       u.ieee_nan.mantissa0 = (mant) >> 32;				      \
+       u.ieee_nan.mantissa1 = (mant);					      \
+       if ((u.ieee.mantissa0 | u.ieee.mantissa1) != 0)			      \
+	 (flt) = u.d;							      \
   } while (0)
 
 #include <strtod_l.c>

Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-64-128/strtold_l.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-64-128/strtold_l.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-64-128/strtold_l.c Fri Aug 30 00:02:28 2013
@@ -44,11 +44,13 @@
 #define SET_MANTISSA(flt, mant) \
   do { union ieee854_long_double u;					      \
        u.d = (flt);							      \
-       u.ieee.mantissa0 = 0x8000;					      \
-       u.ieee.mantissa1 = 0;						      \
-       u.ieee.mantissa2 = ((mant) >> 32);	      			      \
-       u.ieee.mantissa3 = (mant) & 0xffffffff;				      \
-       (flt) = u.d;							      \
+       u.ieee_nan.mantissa0 = 0;					      \
+       u.ieee_nan.mantissa1 = 0;					      \
+       u.ieee_nan.mantissa2 = (mant) >> 32;				      \
+       u.ieee_nan.mantissa3 = (mant);					      \
+       if ((u.ieee.mantissa0 | u.ieee.mantissa1				      \
+	    | u.ieee.mantissa2 | u.ieee.mantissa3) != 0)		      \
+	 (flt) = u.d;							      \
   } while (0)
 
 #include <strtod_l.c>

Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-96/strtold_l.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-96/strtold_l.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-96/strtold_l.c Fri Aug 30 00:02:28 2013
@@ -34,11 +34,10 @@
 #define SET_MANTISSA(flt, mant) \
   do { union ieee854_long_double u;					      \
        u.d = (flt);							      \
-       if ((mant & 0x7fffffffffffffffULL) == 0)				      \
-	 mant = 0x4000000000000000ULL;					      \
-       u.ieee.mantissa0 = (((mant) >> 32) & 0x7fffffff) | 0x80000000;	      \
-       u.ieee.mantissa1 = (mant) & 0xffffffff;				      \
-       (flt) = u.d;							      \
+       u.ieee_nan.mantissa0 = (mant) >> 32;				      \
+       u.ieee_nan.mantissa1 = (mant);					      \
+       if ((u.ieee.mantissa0 | u.ieee.mantissa1) != 0)			      \
+	 (flt) = u.d;							      \
   } while (0)
 
 #include <stdlib/strtod_l.c>

Modified: fsf/trunk/libc/sysdeps/mach/hurd/bits/errno.h
==============================================================================
--- fsf/trunk/libc/sysdeps/mach/hurd/bits/errno.h (original)
+++ fsf/trunk/libc/sysdeps/mach/hurd/bits/errno.h Fri Aug 30 00:02:28 2013
@@ -9,6 +9,14 @@
 
 enum __error_t_codes
 {
+	/* The value zero always means success and it is perfectly fine for
+	   code to use 0 explicitly (or implicitly, e.g. via Boolean coercion).
+	   Having an enum entry for zero both makes the debugger print the name
+	   for error_t-typed zero values, and prevents the compiler from
+	   issuing warnings about 'case 0:' in a switch on an error_t-typed
+	   value.  */
+	ESUCCESS = 0,
+
 #undef EDOM
 #undef ERANGE
 	EPERM           = _HURD_ERRNO (1),
@@ -151,7 +159,7 @@
 	EDQUOT          = _HURD_ERRNO (69),
 #define	EDQUOT          _HURD_ERRNO (69)/* Disk quota exceeded */
 	ESTALE          = _HURD_ERRNO (70),
-#define	ESTALE          _HURD_ERRNO (70)/* Stale NFS file handle */
+#define	ESTALE          _HURD_ERRNO (70)/* Stale file handle */
 	EREMOTE         = _HURD_ERRNO (71),
 #define	EREMOTE         _HURD_ERRNO (71)/* Object is remote */
 	EBADRPC         = _HURD_ERRNO (72),

Modified: fsf/trunk/libc/sysdeps/mach/hurd/errnos.awk
==============================================================================
--- fsf/trunk/libc/sysdeps/mach/hurd/errnos.awk (original)
+++ fsf/trunk/libc/sysdeps/mach/hurd/errnos.awk Fri Aug 30 00:02:28 2013
@@ -31,6 +31,14 @@
     print "";
     print "#ifdef _ERRNO_H\n";
     print "enum __error_t_codes\n{";
+    print "\t/* The value zero always means success and it is perfectly fine for";
+    print "\t   code to use 0 explicitly (or implicitly, e.g. via Boolean coercion).";
+    print "\t   Having an enum entry for zero both makes the debugger print the name";
+    print "\t   for error_t-typed zero values, and prevents the compiler from";
+    print "\t   issuing warnings about 'case 0:' in a switch on an error_t-typed";
+    print "\t   value.  */";
+    print "\tESUCCESS = 0,"
+    print "";
     errnoh = 0;
     maxerrno = 0;
     in_mach_errors = "";

Modified: fsf/trunk/libc/sysdeps/mach/hurd/i386/init-first.c
==============================================================================
--- fsf/trunk/libc/sysdeps/mach/hurd/i386/init-first.c (original)
+++ fsf/trunk/libc/sysdeps/mach/hurd/i386/init-first.c Fri Aug 30 00:02:28 2013
@@ -122,8 +122,8 @@
           /* We may need to see our own phdrs, e.g. for TLS setup.
              Try the usual kludge to find the headers without help from
              the exec server.  */
-          extern const void _start;
-          const ElfW(Ehdr) *const ehdr = &_start;
+          extern const void __executable_start;
+          const ElfW(Ehdr) *const ehdr = &__executable_start;
           _dl_phdr = (const void *) ehdr + ehdr->e_phoff;
           _dl_phnum = ehdr->e_phnum;
           assert (ehdr->e_phentsize == sizeof (ElfW(Phdr)));

Modified: fsf/trunk/libc/sysdeps/unix/bsd/ptsname.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/bsd/ptsname.c (original)
+++ fsf/trunk/libc/sysdeps/unix/bsd/ptsname.c Fri Aug 30 00:02:28 2013
@@ -26,7 +26,7 @@
 static char buffer[sizeof (_PATH_TTY) + 2];
 
 
-/* Return the pathname of the pseudo terminal slave assoicated with
+/* Return the pathname of the pseudo terminal slave associated with
    the master FD is open on, or NULL on errors.
    The returned storage is good until the next call to this function.  */
 char *

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c Fri Aug 30 00:02:28 2013
@@ -301,7 +301,7 @@
 	return i;
     }
 
-  /* This means interfaces changed inbetween the reading of the
+  /* This means interfaces changed between the reading of the
      RTM_GETLINK and RTM_GETADDR information.  We have to repeat
      everything.  */
   return -1;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/ldsodefs.h
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/ldsodefs.h (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/ldsodefs.h Fri Aug 30 00:02:28 2013
@@ -18,13 +18,10 @@
 
 #ifndef	_LDSODEFS_H
 
-#include <libc-abis.h>
 #include <kernel-features.h>
 
 /* Get the real definitions.  */
 #include_next <ldsodefs.h>
-
-/* Now define our stuff.  */
 
 /* We have the auxiliary vector.  */
 #define HAVE_AUX_VECTOR
@@ -41,24 +38,4 @@
    up the page size information.  */
 #define HAVE_AUX_PAGESIZE
 
-/* Accept binaries which identify the binary as using Linux extensions.  */
-#define VALID_ELF_HEADER(hdr,exp,size)	(memcmp (hdr, exp, size) == 0	\
-					 || memcmp (hdr, expected2, size) == 0)
-#define VALID_ELF_OSABI(osabi)		(osabi == ELFOSABI_SYSV \
-					 || osabi == ELFOSABI_LINUX)
-#define VALID_ELF_ABIVERSION(osabi,ver) \
-  (ver == 0 || (osabi == ELFOSABI_LINUX && ver < LIBC_ABI_MAX))
-#define MORE_ELF_HEADER_DATA \
-  static const unsigned char expected2[EI_PAD] =	\
-  {							\
-    [EI_MAG0] = ELFMAG0,				\
-    [EI_MAG1] = ELFMAG1,				\
-    [EI_MAG2] = ELFMAG2,				\
-    [EI_MAG3] = ELFMAG3,				\
-    [EI_CLASS] = ELFW(CLASS),				\
-    [EI_DATA] = byteorder,				\
-    [EI_VERSION] = EV_CURRENT,				\
-    [EI_OSABI] = ELFOSABI_LINUX				\
-  }
-
 #endif /* ldsodefs.h */

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/libc-start.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/libc-start.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/libc-start.c Fri Aug 30 00:02:28 2013
@@ -54,7 +54,7 @@
       char **temp;
       /* ...in which case, we have argc as the top thing on the
          stack, followed by argv (NULL-terminated), envp (likewise),
-         and the auxilary vector.  */
+         and the auxiliary vector.  */
       /* 32/64-bit agnostic load from stack */
       argc = *(long int *) stack_on_entry;
       argv = stack_on_entry + 1;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S Fri Aug 30 00:02:28 2013
@@ -23,7 +23,7 @@
    and if appropriate:
      __CONTEXT_ENABLE_FPRS
      __CONTEXT_ENABLE_VRS
-   Any archecture that implements the Vector unit is assumed to also
+   Any architecture that implements the Vector unit is assumed to also
    implement the floating unit.  */
 
 /* Stack frame offsets.  */

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S Fri Aug 30 00:02:28 2013
@@ -23,7 +23,7 @@
    and if appropriate:
      __CONTEXT_ENABLE_FPRS
      __CONTEXT_ENABLE_VRS
-   Any archecture that implements the Vector unit is assumed to also
+   Any architecture that implements the Vector unit is assumed to also
    implement the floating unit.  */
 
 /* Stack frame offsets.  */

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S Fri Aug 30 00:02:28 2013
@@ -23,7 +23,7 @@
    and if appropriate:
      __CONTEXT_ENABLE_FPRS
      __CONTEXT_ENABLE_VRS
-   Any archecture that implements the Vector unit is assumed to also
+   Any architecture that implements the Vector unit is assumed to also
    implement the floating unit.  */
 
 /* Stack frame offsets.  */

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/ptsname.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/ptsname.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/ptsname.c Fri Aug 30 00:02:28 2013
@@ -56,7 +56,7 @@
 static char buffer[sizeof (_PATH_DEVPTS) + 20];
 
 
-/* Return the pathname of the pseudo terminal slave assoicated with
+/* Return the pathname of the pseudo terminal slave associated with
    the master FD is open on, or NULL on errors.
    The returned storage is good until the next call to this function.  */
 char *

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits