aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2011-09-08 23:41:41 -0400
committerUlrich Drepper <drepper@gmail.com>2011-09-08 23:41:41 -0400
commitf99247809108c563f31005f8eb0bcb527e6cd0fe (patch)
tree9c0996f306e09a8750bf41458b3f186c41695d68 /elf
parent7f5517aa5269af6cac791ca74111f817320b73f2 (diff)
downloadglibc-f99247809108c563f31005f8eb0bcb527e6cd0fe.zip
glibc-f99247809108c563f31005f8eb0bcb527e6cd0fe.tar.gz
glibc-f99247809108c563f31005f8eb0bcb527e6cd0fe.tar.bz2
Fix warning in elf/sprof.c
Diffstat (limited to 'elf')
-rw-r--r--elf/sprof.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/elf/sprof.c b/elf/sprof.c
index 6f12579..dbe217b 100644
--- a/elf/sprof.c
+++ b/elf/sprof.c
@@ -404,7 +404,6 @@ load_shobj (const char *name)
ElfW(Addr) mapend = 0;
const ElfW(Phdr) *ph;
size_t textsize;
- unsigned int log_hashfraction;
ElfW(Ehdr) *ehdr;
int fd;
ElfW(Shdr) *shdr;
@@ -474,13 +473,6 @@ load_shobj (const char *name)
textsize = result->highpc - result->lowpc;
result->kcountsize = textsize / HISTFRACTION;
result->hashfraction = HASHFRACTION;
- if ((HASHFRACTION & (HASHFRACTION - 1)) == 0)
- /* If HASHFRACTION is a power of two, mcount can use shifting
- instead of integer division. Precompute shift amount. */
- log_hashfraction = __builtin_ffs (result->hashfraction
- * sizeof (struct here_fromstruct)) - 1;
- else
- log_hashfraction = -1;
if (do_test)
printf ("hashfraction = %d\ndivider = %Zu\n",
result->hashfraction,