From: Andreas Jaeger Date: Fri, 9 Sep 2011 03:41:41 +0000 (-0400) Subject: Fix warning in elf/sprof.c X-Git-Tag: upstream/2.30~12086 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f99247809108c563f31005f8eb0bcb527e6cd0fe;p=external%2Fglibc.git Fix warning in elf/sprof.c --- diff --git a/ChangeLog b/ChangeLog index 34e9e37..b2293fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-08-17 Andreas Jaeger + + * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction. + 2011-08-18 Paul Pluzhnikov Ian Lance Taylor 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,