]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix warning in elf/sprof.c
authorAndreas Jaeger <aj@suse.de>
Fri, 9 Sep 2011 03:41:41 +0000 (23:41 -0400)
committerUlrich Drepper <drepper@gmail.com>
Fri, 9 Sep 2011 03:41:41 +0000 (23:41 -0400)
ChangeLog
elf/sprof.c

index 34e9e37109598adb17ae49c9240a0d9b601dc320..b2293fc2b1c0fd9c0b6a92245886e0b9761b9799 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-17  Andreas Jaeger  <aj@suse.de>
+
+       * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
+
 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
            Ian Lance Taylor  <iant@google.com>
 
index 6f1257967d9b0337ce84a85aaeb6dbdc456c8752..dbe217b083e07dd7c2236ada759fd243455011b1 100644 (file)
@@ -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,