Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 27 Oct 2001 00:23:28 +0000 (00:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 27 Oct 2001 00:23:28 +0000 (00:23 +0000)
2001-10-26  Ulrich Drepper  <drepper@redhat.com>

* string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
nrules value.

2001-10-24  H.J. Lu  <hjl@gnu.org>

* sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
Use __BEGIN_DECLS/__END_DECLS around prototypes.
* sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.

2001-10-21  Jim Meyering  <meyering@lucent.com>

* malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
* posix/getopt.c (_): Likewise.
* posix/regex.c (_): Likewise.

2001-10-26  Ulrich Drepper  <drepper@redhat.com>

* resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
lookup not ip6.int.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
Reported by Martin.v.Loewis@t-online.de [PR libc/2598].

2001-10-19  Jakub Jelinek  <jakub@redhat.com>

* misc/sys/cdefs.h (__attribute_used__): Define.
* elf/rtld.c (_dl_start): Add __attribute_used__.
* elf/dl-runtime.c (fixup, profile_fixup): Likewise.

13 files changed:
ChangeLog
bits/dlfcn.h
dlfcn/dlfcn.h
elf/dl-runtime.c
elf/rtld.c
malloc/obstack.c
posix/getopt.c
posix/regex.c
resolv/gethnamaddr.c
resolv/nss_dns/dns-host.c
string/strxfrm.c
sysdeps/generic/bits/dlfcn.h
sysdeps/mips/bits/dlfcn.h

index 5a6f9301cc4f15f6b9f40df564f8813020d0fa29..90bdec7a144535d3c52bb8d18f0713a0aed85ebf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,35 @@
+2001-10-26  Ulrich Drepper  <drepper@redhat.com>
+
+       * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
+       nrules value.
+
+2001-10-24  H.J. Lu  <hjl@gnu.org>
+
+       * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
+       Use __BEGIN_DECLS/__END_DECLS around prototypes.
+       * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
+
+2001-10-21  Jim Meyering  <meyering@lucent.com>
+
+       * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
+       this code would end up calling gettext even in packages built
+       with --disable-nls.
+       * posix/getopt.c (_): Likewise.
+       * posix/regex.c (_): Likewise.
+
+2001-10-26  Ulrich Drepper  <drepper@redhat.com>
+
+       * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
+       lookup not ip6.int.
+       * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
+       Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
+
+2001-10-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * misc/sys/cdefs.h (__attribute_used__): Define.
+       * elf/rtld.c (_dl_start): Add __attribute_used__.
+       * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
+
 2001-10-25  Andreas Schwab  <schwab@suse.de>
 
        * stdlib/a64l.c: Expect least significant digit first.
index 2525fa3d98aa8f0ac00a2635391c84beb5850478..e96b5c17ae93d7be5c20db6544330717e241bb27 100644 (file)
@@ -1,5 +1,5 @@
 /* System dependent definitions for run-time dynamic loading.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1998,1999,2000,2001 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
         foo = DL_CALL_FCT (fctp, (arg1, arg2));
 */
 # define DL_CALL_FCT(fctp, args) \
-  (_dl_mcount_wrapper_check (fctp), (*(fctp)) args)
+  (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
+
+__BEGIN_DECLS
 
 /* This function calls the profiling functions.  */
 extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
+
+__END_DECLS
+
 #endif
index 3fe4d02668e2e5507b42365c4e5c13e80695aa40..6f88a897ce398a6478382e171b30b45f14e4c511 100644 (file)
@@ -1,5 +1,5 @@
 /* User functions for run-time dynamic loading.
-   Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1995-1999, 2000, 2001 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
@@ -25,6 +25,7 @@
 /* Collect various system dependent definitions and declarations.  */
 #include <bits/dlfcn.h>
 
+
 #ifdef __USE_GNU
 /* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT
    the run-time address of the symbol called NAME in the next shared
@@ -38,6 +39,7 @@
 # define RTLD_DEFAULT  ((void *) 0)
 #endif
 
+
 __BEGIN_DECLS
 
 /* Open the shared object FILE and map it in; return a handle that can be
@@ -66,6 +68,7 @@ extern void *dlvsym (void *__restrict __handle,
    the error string so that a following call returns null.  */
 extern char *dlerror (void) __THROW;
 
+
 #ifdef __USE_GNU
 /* Structure containing information about object searched using
    `dladdr'.  */
@@ -79,7 +82,7 @@ typedef struct
 
 /* Fill in *INFO with the following information about ADDRESS.
    Returns 0 iff no shared object's segments contain that address.  */
-extern int dladdr (const void *__address, Dl_info *__info) __THROW;
+extern int dladdr (__const void *__address, Dl_info *__info) __THROW;
 #endif
 
 __END_DECLS
index 7a77f46b93707bb936bbb88823edda88b654f1c8..d9c99c4785634ab09fa94baf7c50dfd6e8482ecf 100644 (file)
@@ -42,7 +42,7 @@
    function.  */
 
 #ifndef ELF_MACHINE_NO_PLT
-static ElfW(Addr) __attribute__ ((unused))
+static ElfW(Addr) __attribute_used__
 fixup (
 # ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
         ELF_MACHINE_RUNTIME_FIXUP_ARGS,
@@ -126,7 +126,7 @@ fixup (
 
 #if !defined PROF && !defined ELF_MACHINE_NO_PLT && !__BOUNDED_POINTERS__
 
-static ElfW(Addr) __attribute__ ((unused))
+static ElfW(Addr) __attribute_used__
 profile_fixup (
 #ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
        ELF_MACHINE_RUNTIME_FIXUP_ARGS,
index cf7f7efca976630d2c04f58c3f1d3fa32b292cb5..47ac3e3cb617c7b1f34e721cfcc723fe741e6cba 100644 (file)
@@ -145,7 +145,7 @@ RTLD_START
 # error "sysdeps/MACHINE/dl-machine.h fails to define RTLD_START"
 #endif
 
-static ElfW(Addr)
+static ElfW(Addr) __attribute_used__
 _dl_start (void *arg)
 {
   struct link_map bootstrap_map;
index 7b1206c13fed7fa500cc8e8c254d5391a1caf905..0244da3839954d5af8381cb945d5060ca0b4c08f 100644 (file)
@@ -459,7 +459,7 @@ _obstack_memory_used (h)
 \f
 /* Define the error handler.  */
 # ifndef _
-#  if defined HAVE_LIBINTL_H || defined _LIBC
+#  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #   include <libintl.h>
 #   ifndef _
 #    define _(Str) gettext (Str)
index df7127e4785ae1c1d8fd4b41e668847a111c32e3..58ba10431c56aa56d2523271e011658f2c7b51c3 100644 (file)
@@ -78,7 +78,7 @@
 
 #ifndef _
 /* This is for other GNU distributions with internationalized messages.  */
-# if defined HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #  include <libintl.h>
 #  ifndef _
 #   define _(msgid)    gettext (msgid)
index facb833f587720e7dbf631bbbb6aedfac38a544e..1435a809aa534c29cbb0d0709ca410ede793d2e3 100644 (file)
@@ -91,7 +91,7 @@
 # endif
 
 /* This is for other GNU distributions with internationalized messages.  */
-# if HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #  include <libintl.h>
 #  ifdef _LIBC
 #   undef gettext
index c13b1066f5181dc1530ff2a519ed68a9a7ab5adf..117e4a321e76906018a82e49a878f46d1b8caa9c 100644 (file)
@@ -690,7 +690,7 @@ gethostbyaddr(addr, len, af)
                                       uaddr[n] & 0xf,
                                       (uaddr[n] >> 4) & 0xf));
                }
-               strcpy(qp, "ip6.int");
+               strcpy(qp, "ip6.arpa");
                break;
        default:
                abort();
index 2102f637589e024f9dbe21e61a8a6318c1dca576..a75e9dfd8367be7dde1b4e7404b92928ebc96631 100644 (file)
@@ -282,7 +282,7 @@ _nss_dns_gethostbyaddr_r (const void *addr, socklen_t len, int af,
       qp = qbuf;
       for (n = IN6ADDRSZ - 1; n >= 0; n--)
        qp += sprintf (qp, "%x.%x.", uaddr[n] & 0xf, (uaddr[n] >> 4) & 0xf);
-      strcpy (qp, "ip6.int");
+      strcpy (qp, "ip6.arpa");
       break;
     default:
       /* Cannot happen.  */
index 1dc3c47db4e1ae7ce12e630f2a6d6ec92f10f0cb..257ce495db30d56028af753ff590456eb997a87f 100644 (file)
@@ -96,7 +96,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l)
 {
 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
   struct locale_data *current = l->__locales[LC_COLLATE];
-  uint_fast32_t nrules = *((const uint32_t *) current->values[_NL_ITEM_INDEX (_NL_COLLATE_NRULES)].string);
+  uint_fast32_t nrules = current->values[_NL_ITEM_INDEX (_NL_COLLATE_NRULES)].word;
 #else
   uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
 #endif
index 2525fa3d98aa8f0ac00a2635391c84beb5850478..e96b5c17ae93d7be5c20db6544330717e241bb27 100644 (file)
@@ -1,5 +1,5 @@
 /* System dependent definitions for run-time dynamic loading.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1998,1999,2000,2001 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
         foo = DL_CALL_FCT (fctp, (arg1, arg2));
 */
 # define DL_CALL_FCT(fctp, args) \
-  (_dl_mcount_wrapper_check (fctp), (*(fctp)) args)
+  (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
+
+__BEGIN_DECLS
 
 /* This function calls the profiling functions.  */
 extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
+
+__END_DECLS
+
 #endif
index 2380caa9d4e101c4978808f04c434cc93de8e921..c5b4c5950bd7ff9c4f3a5c7ffc8b3a4ca1e345ae 100644 (file)
@@ -1,5 +1,5 @@
 /* System dependent definitions for run-time dynamic loading.
-   Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2000, 2001 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
         foo = DL_CALL_FCT (fctp, (arg1, arg2));
 */
 # define DL_CALL_FCT(fctp, args) \
-  (_dl_mcount_wrapper_check (fctp), (*(fctp)) args)
+  (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)
+
+__BEGIN_DECLS
 
 /* This function calls the profiling functions.  */
 extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
+
+__END_DECLS
+
 #endif