summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-17 07:09:10 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-17 07:09:10 +0000
commite3265f5bc52f21b7da063813b4d0134a343e9a28 (patch)
tree61599d90f67cef6ee844ac1137faa3ec95330817 /elf
parente2947c429eaf51b7c0645e9484d70f141ba560d6 (diff)
downloadglibc-e3265f5bc52f21b7da063813b4d0134a343e9a28.tar.gz
glibc-e3265f5bc52f21b7da063813b4d0134a343e9a28.tar.xz
glibc-e3265f5bc52f21b7da063813b4d0134a343e9a28.zip
Update.
2000-04-17  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 7ac87702a4..16e00b0485 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -102,7 +102,7 @@ add_dependency (struct link_map *undef_map, struct link_map *map)
     if (list[i] == map)
       break;
 
-  if (__builtin_expect (i, act) == act)
+  if (__builtin_expect (i == act, 1))
     {
       /* No normal dependency.  See whether we already had to add it
 	 to the special list of dynamic dependencies.  */