[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r8418 - in /fsf/trunk/libc: ./ include/ resolv/ string/ sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/ sysdeps/unix/s...
- To: commits@xxxxxxxxxx
- Subject: [commits] r8418 - in /fsf/trunk/libc: ./ include/ resolv/ string/ sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/ sysdeps/unix/s...
- From: eglibc@xxxxxxxxxx
- Date: Sat, 09 May 2009 18:12:58 -0000
Author: eglibc
Date: Sat May 9 11:12:58 2009
New Revision: 8418
Log:
Import glibc-mainline for 2009-05-09
Removed:
fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S
fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S
fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S
fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/Makeconfig
fsf/trunk/libc/config.make.in
fsf/trunk/libc/include/features.h
fsf/trunk/libc/resolv/res_query.c
fsf/trunk/libc/string/stratcliff.c
fsf/trunk/libc/version.h
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat May 9 11:12:58 2009
@@ -1,3 +1,40 @@
+2009-05-09 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * version.h (VERSION): Bump for 2.10 release.
+ * include/features.h (__GLIBC_MINOR__): Bump to 10.
+
+2009-05-05 Aurelien Jarno <aurelien@xxxxxxxxxxx>
+
+ [BZ #10128]
+ * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
+ or FORMERR and the other NOERROR, don't raise an error.
+
+2009-05-06 Ryan S. Arnold <rsa@xxxxxxxxxx>
+
+ [BZ #10118]
+ * Makeconfig (+asflags): New variable based upon ASFLAG or
+ asflags-cpu.
+ (ASFLAGS): Add override to set ASFLAGS to +asflags.
+ * config.make.in (asflags-cpu): Add variable based upon
+ @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
+ the assembler.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
+ Remove unneeded file now that the assembler emits _ARCH_PWR6 and
+ recognizes power6 instruction set due to passing -mcpu=power6 from
+ --with-cpu=power6 when compiling .S files.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
+ Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
+ Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
+ Likewise.
+
+2009-05-09 Jakub Jelinek <jakub@xxxxxxxxxx>
+
+ * string/stratcliff.c (do_test): Test for zero length
+ STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
+ at the end of the page.
+
2009-05-08 Ulrich Drepper <drepper@xxxxxxxxxx>
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
Modified: fsf/trunk/libc/Makeconfig
==============================================================================
--- fsf/trunk/libc/Makeconfig (original)
+++ fsf/trunk/libc/Makeconfig Sat May 9 11:12:58 2009
@@ -649,6 +649,16 @@
# Don't duplicate options if we inherited variables from the parent.
+cflags := $(sort $(+cflags))
+# These are the flags given to the compiler to tell it what sort of
+# optimization and/or debugging output to do for .S files.
+ifndef +asflags
+# If `ASFLAGS' was defined, use that.
+ifdef ASFLAGS
++asflags := $(ASFLAGS)
+endif #ASFLAGS
+endif # +asflags
+
++asflags += $(asflags-cpu)
# These are flags given to the C compiler to tell it to look for
# include files (including ones given in angle brackets) in the parent
@@ -680,6 +690,8 @@
override CXXFLAGS = $(c++-sysincludes) \
$(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
$(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
+
+override ASFLAGS = $(+asflags)
# If everything is compiled with -fPIC (implicitly) we must tell this by
# defining the PIC symbol.
Modified: fsf/trunk/libc/config.make.in
==============================================================================
--- fsf/trunk/libc/config.make.in (original)
+++ fsf/trunk/libc/config.make.in Sat May 9 11:12:58 2009
@@ -32,6 +32,7 @@
config-os = @host_os@
config-sysdirs = @sysnames@
cflags-cpu = @libc_cv_cc_submachine@
+asflags-cpu = @libc_cv_cc_submachine@
defines = @DEFINES@
sysincludes = @SYSINCLUDES@
Modified: fsf/trunk/libc/include/features.h
==============================================================================
--- fsf/trunk/libc/include/features.h (original)
+++ fsf/trunk/libc/include/features.h Sat May 9 11:12:58 2009
@@ -328,7 +328,7 @@
/* Major and minor version number of the GNU C library package. Use
these macros to test for features in specific releases. */
#define __GLIBC__ 2
-#define __GLIBC_MINOR__ 9
+#define __GLIBC_MINOR__ 10
#define __GLIBC_PREREQ(maj, min) \
((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
Modified: fsf/trunk/libc/resolv/res_query.c
==============================================================================
--- fsf/trunk/libc/resolv/res_query.c (original)
+++ fsf/trunk/libc/resolv/res_query.c Sat May 9 11:12:58 2009
@@ -289,6 +289,13 @@
break;
case FORMERR:
case NOTIMP:
+ /* Servers must not reply to AAAA queries with
+ NOTIMP etc but some of them do. */
+ if ((hp->rcode == NOERROR && ntohs (hp->ancount) != 0)
+ || (hp2->rcode == NOERROR
+ && ntohs (hp2->ancount) != 0))
+ goto success;
+ /* FALLTHROUGH */
case REFUSED:
default:
RES_SET_H_ERRNO(statp, NO_RECOVERY);
Modified: fsf/trunk/libc/string/stratcliff.c
==============================================================================
--- fsf/trunk/libc/string/stratcliff.c (original)
+++ fsf/trunk/libc/string/stratcliff.c Sat May 9 11:12:58 2009
@@ -129,10 +129,10 @@
}
for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
{
- for (inner = MAX (outer, nchars - 64); inner < nchars; ++inner)
- {
- if (STRNLEN (&adr[outer], inner - outer + 1)
- != (size_t) (inner - outer + 1))
+ for (inner = MAX (outer, nchars - 64); inner <= nchars; ++inner)
+ {
+ if (STRNLEN (&adr[outer], inner - outer)
+ != (size_t) (inner - outer))
{
printf ("%s flunked bounded for outer = %d, inner = %d\n",
STRINGIFY (STRNLEN), outer, inner);
@@ -225,7 +225,7 @@
adr[middle] = L('T');
}
}
- for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
{
CHAR *cp = MEMCHR (&adr[outer], L('V'), nchars - outer);
@@ -279,9 +279,9 @@
}
}
- /* strncpy tests */
+ /* strncpy/wcsncpy tests */
adr[nchars - 1] = L('T');
- for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
{
size_t len;
@@ -355,6 +355,24 @@
}
/* stpncpy/wcpncpy test */
+ adr[nchars - 1] = L('T');
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
+ {
+ size_t len;
+
+ for (len = 0; len < nchars - outer; ++len)
+ {
+ if (STPNCPY (dest, &adr[outer], len) != dest + len
+ || MEMCMP (dest, &adr[outer], len) != 0)
+ {
+ printf ("outer %s flunked for outer = %d, len = %Zd\n",
+ STRINGIFY (STPNCPY), outer, len);
+ result = 1;
+ }
+ }
+ }
+ adr[nchars - 1] = L('\0');
+
for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
{
for (middle = MAX (outer, nchars - 64); middle < nchars; ++middle)
@@ -378,7 +396,7 @@
}
/* memcpy/wmemcpy test */
- for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
for (inner = 0; inner < nchars - outer; ++inner)
if (MEMCPY (dest, &adr[outer], inner) != dest)
{
@@ -388,7 +406,7 @@
}
/* mempcpy/wmempcpy test */
- for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
for (inner = 0; inner < nchars - outer; ++inner)
if (MEMPCPY (dest, &adr[outer], inner) != dest + inner)
{
@@ -401,7 +419,7 @@
#ifndef WCSTEST
/* memccpy test */
memset (adr, '\0', nchars);
- for (outer = nchars - 1; outer >= MAX (0, nchars - 128); --outer)
+ for (outer = nchars; outer >= MAX (0, nchars - 128); --outer)
for (inner = 0; inner < nchars - outer; ++inner)
if (memccpy (dest, &adr[outer], L('\1'), inner) != NULL)
{
Modified: fsf/trunk/libc/version.h
==============================================================================
--- fsf/trunk/libc/version.h (original)
+++ fsf/trunk/libc/version.h Sat May 9 11:12:58 2009
@@ -1,4 +1,4 @@
/* This file just defines the current version number of libc. */
-#define RELEASE "development"
-#define VERSION "2.9.90"
+#define RELEASE "stable"
+#define VERSION "2.10"