aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-17 15:41:59 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-17 15:41:59 +0000
commit466a0ec9985e540107ba6e92ba2f6a268ce04154 (patch)
tree56d3ced0641e1623216a5f07045d57d466df6378 /elf/dl-init.c
parente3265f5bc52f21b7da063813b4d0134a343e9a28 (diff)
downloadglibc-466a0ec9985e540107ba6e92ba2f6a268ce04154.zip
glibc-466a0ec9985e540107ba6e92ba2f6a268ce04154.tar.gz
glibc-466a0ec9985e540107ba6e92ba2f6a268ce04154.tar.bz2
Update.
* elf/dl-reloc.c (_dl_relocat_object): Add more __builtin_expect. * elf/dl-lookup.c: Add more __builtin_expect. * elf/dl-init.c (_dl_init): Add more __builtin_expect. * elf/dl-fini.c (_dl_fini): Add more __builtin_expect. * elf/dl-deps.c (_dl_map_object_deps): Add more __builtin_expect. * elf/dl-close.c (_dl_close): Add more __builtin_expect. * elf/rtld.c (_dl_start_final): Add more __builtin_expect.
Diffstat (limited to 'elf/dl-init.c')
-rw-r--r--elf/dl-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-init.c b/elf/dl-init.c
index b455f5d..dfef83d 100644
--- a/elf/dl-init.c
+++ b/elf/dl-init.c
@@ -43,7 +43,7 @@ _dl_init (struct link_map *main_map, int argc, char **argv, char **env)
ElfW(Addr) *addrs;
unsigned int cnt;
- if (_dl_debug_impcalls)
+ if (__builtin_expect (_dl_debug_impcalls, 0))
_dl_debug_message (1, "\ncalling preinit: ",
main_map->l_name[0]
? main_map->l_name : _dl_argv[0], "\n\n", NULL);
@@ -94,7 +94,7 @@ _dl_init (struct link_map *main_map, int argc, char **argv, char **env)
continue;
/* Print a debug message if wanted. */
- if (_dl_debug_impcalls)
+ if (__builtin_expect (_dl_debug_impcalls, 0))
_dl_debug_message (1, "\ncalling init: ",
l->l_name[0] ? l->l_name : _dl_argv[0],
"\n\n", NULL);