From patchwork Thu Dec 20 01:22:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [google,4.7] fdo build for linux kernel (issue 6968046) From: Rong Xu X-Patchwork-Id: 207583 Message-Id: To: xur@google.com, davidxl@google.com, gcc-patches@gcc.gnu.org, reply@codereview-hr.appspotmail.com Date: Wed, 19 Dec 2012 17:22:22 -0800 On Wed, Dec 19, 2012 at 5:04 PM, wrote: > The change in gcov-io.h is from a different patch. sorry. here is the patch for gcov-io.h: GCOV_LINKAGE void gcov_sync (gcov_position_t /*base*/, > > David > > > https://codereview.appspot.com/6968046/diff/1/gcc/gcov-io.c > File gcc/gcov-io.c (right): > > https://codereview.appspot.com/6968046/diff/1/gcc/gcov-io.c#newcode688 > gcc/gcov-io.c:688: > Have you compared this with this impl: > > while (x) > { > c++; > x&=(x-1) > } > return c; > I did not try this pimplier version. I can do a test on the dump speed and report back. > https://codereview.appspot.com/6968046/ Index: gcov-io.h =================================================================== --- gcov-io.h (revision 194562) +++ gcov-io.h (working copy) @@ -781,8 +781,8 @@ unused) */ unsigned n_functions; /* number of functions */ - const struct gcov_fn_info *const *functions; /* pointer to pointers - to function information */ + const struct gcov_fn_info **functions; /* pointer to pointers + to function information */ }; /* Information about a single imported module. */ @@ -988,8 +988,7 @@ GCOV_LINKAGE void gcov_seek (gcov_position_t /*position*/) ATTRIBUTE_HIDDEN; GCOV_LINKAGE void gcov_truncate (void) ATTRIBUTE_HIDDEN; GCOV_LINKAGE gcov_unsigned_t gcov_string_length (const char *) ATTRIBUTE_HIDDEN; -GCOV_LINKAGE unsigned gcov_gcda_file_size (struct gcov_info *, - struct gcov_summary *); +GCOV_LINKAGE unsigned gcov_gcda_file_size (struct gcov_info *); #else /* Available outside libgcov */