Patchwork {patch implicit-zee.c]: Fix printf-formatter use for long-long type for windows native targets.

login
register
mail settings
Submitter Kai Tietz
Date Dec. 9, 2011, 10:05 a.m.
Message ID <CAEwic4as2gOpYyz=VYPRimHorCOe4VKfU=R2fHocXij2fzXRTg@mail.gmail.com>
Download mbox | patch
Permalink /patch/130329/
State New
Headers show

Comments

Kai Tietz - Dec. 9, 2011, 10:05 a.m.
Fine, here is updated patch for it.
Richard Guenther - Dec. 9, 2011, 10:15 a.m.
On Fri, Dec 9, 2011 at 11:05 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Fine, here is updated patch for it.

Ok.

Thanks,
Richard.

> Index: implicit-zee.c
> ===================================================================
> --- implicit-zee.c      (revision 182092)
> +++ implicit-zee.c      (working copy)
> @@ -889,8 +889,8 @@
>   rtx curr_insn = NULL_RTX;
>   int i;
>   int ix;
> -  long long num_realized = 0;
> -  long long num_ze_opportunities = 0;
> +  long num_realized = 0;
> +  long num_ze_opportunities = 0;
>   VEC (rtx, heap) *zeinsn_list;
>   VEC (rtx, heap) *zeinsn_del_list;
>
> @@ -944,10 +944,10 @@
>   VEC_free (rtx, heap, zeinsn_del_list);
>
>   if (dump_file && num_ze_opportunities > 0)
> -    fprintf (dump_file, "\n %s : num_zee_opportunities = %lld "
> -                        "num_realized = %lld \n",
> -                        current_function_name (),
> -                        num_ze_opportunities, num_realized);
> +    fprintf (dump_file, "\n %s : num_zee_opportunities = %ld"
> +                       " num_realized = %ld\n",
> +                        current_function_name (), num_ze_opportunities,
> +                        num_realized);
>
>   df_finish_pass (false);
>   return 0;

Patch

Index: implicit-zee.c
===================================================================
--- implicit-zee.c      (revision 182092)
+++ implicit-zee.c      (working copy)
@@ -889,8 +889,8 @@ 
   rtx curr_insn = NULL_RTX;
   int i;
   int ix;
-  long long num_realized = 0;
-  long long num_ze_opportunities = 0;
+  long num_realized = 0;
+  long num_ze_opportunities = 0;
   VEC (rtx, heap) *zeinsn_list;
   VEC (rtx, heap) *zeinsn_del_list;

@@ -944,10 +944,10 @@ 
   VEC_free (rtx, heap, zeinsn_del_list);

   if (dump_file && num_ze_opportunities > 0)
-    fprintf (dump_file, "\n %s : num_zee_opportunities = %lld "
-                        "num_realized = %lld \n",
-                        current_function_name (),
-                        num_ze_opportunities, num_realized);
+    fprintf (dump_file, "\n %s : num_zee_opportunities = %ld"
+                       " num_realized = %ld\n",
+                        current_function_name (), num_ze_opportunities,
+                        num_realized);

   df_finish_pass (false);
   return 0;