This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Hi,

this patch fixes for windows native target print-formatter used about
long-long type.

ChangeLog

2011-12-09  Kai Tietz  <ktietz@redhat.com>

	* implicit-zee.c (find_and_remove_ze): Use
	HOST_WIDEST_INT_PRINT_DEC instead of %lld.

Tested for i686-w64-mingw32, x86_64-w64-mingw32, and
x86_64-unknown-linux-gnu.  Ok for apply?

Kai

Index: implicit-zee.c
===================================================================
--- implicit-zee.c      (revision 182092)
+++ implicit-zee.c      (working copy)
@@ -944,10 +944,12 @@
   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",
+    fprintf (dump_file, "\n %s : num_zee_opportunities = "
+                       HOST_WIDEST_INT_PRINT_DEC
+                        " num_realized = " HOST_WIDEST_INT_PRINT_DEC "\n",
                         current_function_name (),
-                        num_ze_opportunities, num_realized);
+                        (HOST_WIDEST_INT) num_ze_opportunities,
+                        (HOST_WIDEST_INT) num_realized);

   df_finish_pass (false);
   return 0;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]