]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c/35002 (Incorrect spelling of "hottest")
authorBernhard Fischer <aldot@gcc.gnu.org>
Tue, 29 Jan 2008 15:56:20 +0000 (16:56 +0100)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Tue, 29 Jan 2008 15:56:20 +0000 (16:56 +0100)
2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>

PR c/35002
* ipa-struct-reorg.c: Fix spelling.
* params.def: Ditto.

From-SVN: r131940

gcc/ChangeLog
gcc/ipa-struct-reorg.c
gcc/params.def

index cb097d93c946895384bd95467e9c69d61a828e3f..5d68115eb5692479257bef904b85f9b78e144991 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
+
+       PR c/35002
+       * ipa-struct-reorg.c: Fix spelling.
+       * params.def: Ditto.
+
 2008-01-29  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/35006
index 79a2ffddb0258064186111ca2e45e405be643496..514b9a22898d4281f2a1fa6874de6a49f0b79f1a 100644 (file)
@@ -3638,7 +3638,7 @@ collect_accesses_in_func (struct function *fn)
 /* This function summarizes counts of the fields into the structure count.  */
 
 static void
-sum_counts (d_str str, gcov_type *hotest)
+sum_counts (d_str str, gcov_type *hottest)
 {
   int i;
       
@@ -3662,8 +3662,8 @@ sum_counts (d_str str, gcov_type *hotest)
       fprintf (dump_file, "\" is " HOST_WIDEST_INT_PRINT_DEC, str->count);
     }
 
-  if (str->count > *hotest)
-    *hotest = str->count;
+  if (str->count > *hottest)
+    *hottest = str->count;
 }
 
 /* This function peels the field into separate structure if it's
@@ -3903,18 +3903,18 @@ collect_data_accesses (void)
 static void
 exclude_cold_structs (void)
 {
-  gcov_type hotest = 0;
+  gcov_type hottest = 0;
   unsigned i;
   d_str str;
 
   /* We summarize counts of fields of a structure into the structure count.  */
   for (i = 0; VEC_iterate (structure, structures, i, str); i++)
-    sum_counts (str, &hotest);
+    sum_counts (str, &hottest);
 
   /* Remove cold structures from structures vector.  */
   i = 0;
   while (VEC_iterate (structure, structures, i, str))
-    if (str->count * 100 < (hotest * STRUCT_REORG_COLD_STRUCT_RATIO))
+    if (str->count * 100 < (hottest * STRUCT_REORG_COLD_STRUCT_RATIO))
       {
        if (dump_file)
          {
index 0baff3d1d6106dd82fd18e9da0d7acd01c83413a..0428c3120af0c994252fff97ce88c8c1a5a09d08 100644 (file)
@@ -83,14 +83,14 @@ DEFPARAM (PARAM_SRA_FIELD_STRUCTURE_RATIO,
          "The threshold ratio between instantiated fields and the total structure size",
          75, 0, 100)
 
-/* The threshold ratio between current and hotest structure counts.
+/* The threshold ratio between current and hottest structure counts.
    We say that if the ratio of the current structure count, 
-   calculated by profiling, to the hotest structure count 
+   calculated by profiling, to the hottest structure count 
    in the program is less than this parameter, then structure
    reorganization is not applied. The default is 10%.  */
 DEFPARAM (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO,
          "struct-reorg-cold-struct-ratio",
-         "The threshold ratio between current and hotest structure counts",
+         "The threshold ratio between current and hottest structure counts",
          10, 0, 100)
 
 /* The single function inlining limit. This is the maximum size
This page took 0.071097 seconds and 5 git commands to generate.