[PATCH 1/2] ipa-struct-reorg.c: Fix bootstrap error on x86
Olga Golovanevsky
OLGA@il.ibm.com
Thu Oct 25 01:17:00 GMT 2007
Samuel Tardieu wrote on 24/10/2007 09:16:36:
> (warning treated as error)
>
> 2007-10-24 Samuel Tardieu <sam@rfc1149.net>
>
> * ipa-struct-reorg.c (sum_counts): Use HOST_WIDEST_PRINT_DEC
> to print gcov_type values.
> ---
> gcc/ipa-struct-reorg.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
> index 9a04289..bbb6f50 100644
> --- a/gcc/ipa-struct-reorg.c
> +++ b/gcc/ipa-struct-reorg.c
> @@ -3550,7 +3550,7 @@ sum_counts (d_str str, gcov_type *hotest)
> {
> fprintf (dump_file, "\nCounter of field \"");
> print_generic_expr (dump_file, str->fields[i].decl, 0);
> - fprintf (dump_file, "\" is " HOST_WIDE_INT_PRINT_DEC,
> + fprintf (dump_file, "\" is " HOST_WIDEST_INT_PRINT_DEC,
> str->fields[i].count);
> }
> str->count += str->fields[i].count;
> @@ -3560,7 +3560,7 @@ sum_counts (d_str str, gcov_type *hotest)
> {
> fprintf (dump_file, "\nCounter of struct \"");
> print_generic_expr (dump_file, str->decl, 0);
> - fprintf (dump_file, "\" is " HOST_WIDE_INT_PRINT_DEC, str->count);
> + fprintf (dump_file, "\" is " HOST_WIDEST_INT_PRINT_DEC,
str->count);
> }
>
> if (str->count > *hotest)
ok with me.
Olga
> --
> 1.5.3.4
More information about the Gcc-patches
mailing list