diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-struct-reorg.c | 12 | ||||
-rw-r--r-- | gcc/params.def | 6 |
3 files changed, 15 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb097d9..5d68115 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c index 79a2ffd..514b9a2 100644 --- a/gcc/ipa-struct-reorg.c +++ b/gcc/ipa-struct-reorg.c @@ -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) { diff --git a/gcc/params.def b/gcc/params.def index 0baff3d..0428c31 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -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 |