This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] ipa-struct-reorg.c: Fix bootstrap error on x86
- From: Olga Golovanevsky <OLGA at il dot ibm dot com>
- To: Samuel Tardieu <sam at rfc1149 dot net>
- Cc: gcc-patches at gcc dot gnu dot org, "H.J. Lu" <hjl at lucon dot org>
- Date: Wed, 24 Oct 2007 23:19:07 +0200
- Subject: Re: [PATCH 1/2] ipa-struct-reorg.c: Fix bootstrap error on x86
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