]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 4 Aug 2001 15:05:57 +0000 (15:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 4 Aug 2001 15:05:57 +0000 (15:05 +0000)
* elf/rtld.c: Correct use of __builtin_expect.

* elf/dl-close.c: Remove commented-out code.

ChangeLog
elf/dl-close.c
elf/rtld.c

index 923c79caa138d8fe4329cab624540f826633d107..4f321a3ce19824a3487cc7d050fadff821dadc85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-08-04  Ulrich Drepper  <drepper@redhat.com>
 
+       * elf/rtld.c: Correct use of __builtin_expect.
+
+       * elf/dl-close.c: Remove commented-out code.
+
        * libio/genops.c (_IO_unbuffer_write): Force streams in narrow
        orientation so that conversion modules aren't used anymore.
        * malloc/set-freeres.c: Call _IO_cleanup before running subfreeres
index 5ec8615a9a2e1310ec35064ee25bf95d468f2ce4..3d24892d28b1004360b4c6e7bf02ab5d4c369192 100644 (file)
@@ -67,8 +67,7 @@ _dl_close (void *_map)
   if (map->l_opencount > 1 || map->l_type != lt_loaded)
     {
       /* There are still references to this object.  Do nothing more.  */
-      if (//__builtin_expect (_dl_debug_files, 0))
-         __builtin_expect (_dl_debug_mask & DL_DEBUG_FILES, 0))
+      if (__builtin_expect (_dl_debug_mask & DL_DEBUG_FILES, 0))
        {
          char buf[20];
 
index 36dbc6f94c2ac7baf34f3635cb71a98465b263ae..2eddb5a40a51266a49bb013386fc95687c1b2ce9 100644 (file)
@@ -823,7 +823,7 @@ of this helper program; chances are you did not intend to run this program.\n\
   if (_dl_rtld_map.l_next)
     _dl_rtld_map.l_next->l_prev = _dl_rtld_map.l_prev;
 
-  if (__builtin_expect (_dl_rtld_map.l_opencount, 2) > 1)
+  if (__builtin_expect (_dl_rtld_map.l_opencount > 1, 1))
     {
       /* Some DT_NEEDED entry referred to the interpreter object itself, so
         put it back in the list of visible objects.  We insert it into the
This page took 0.051906 seconds and 5 git commands to generate.