From 655ab929ed2577ae34088fea77f812e8d067b8bf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 24 Apr 2000 16:28:14 +0000 Subject: [PATCH] Update. * elf/dl-reloc.c (_dl_relocate_object): Add one more __builtin_expect saying that we don't normally expect to profile. --- ChangeLog | 3 +++ elf/dl-reloc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a4092084f9..34d2e9f14f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-04-24 Ulrich Drepper + * elf/dl-reloc.c (_dl_relocate_object): Add one more + __builtin_expect saying that we don't normally expect to profile. + * sysdeps/i386/dl-machine.h (elf_machine_rel): Add __builtin_expect where desirable. diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c index ba9119b75b..4c7aabea85 100644 --- a/elf/dl-reloc.c +++ b/elf/dl-reloc.c @@ -82,7 +82,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[], #include "dynamic-link.h" ELF_DYNAMIC_RELOCATE (l, lazy, consider_profiling); - if (_dl_profile != NULL) + if (__builtin_expect (_dl_profile != NULL, 0)) { /* Allocate the array which will contain the already found relocations. */