[tree-ssa] Fix printf format for tree-dfa.c

Andreas Jaeger aj@suse.de
Wed Feb 12 18:40:00 GMT 2003


The appended patch fixes this warning:
/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-dfa.c: In function `dump_alias_info':
/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-dfa.c:1922: warning: int format, different type arg (arg 4)

I've committed the patch as obvious,

Andreas

2003-02-12  Andreas Jaeger  <aj@suse.de>

	* tree-dfa.c (dump_alias_info): Cast variable of size_t properly.

============================================================
Index: gcc/tree-dfa.c
--- gcc/tree-dfa.c	12 Feb 2003 01:58:25 -0000	1.1.4.77
+++ gcc/tree-dfa.c	12 Feb 2003 18:39:00 -0000
@@ -1,5 +1,5 @@
 /* Data flow functions for trees.
-   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    Contributed by Diego Novillo <dnovillo@redhat.com>
 
 This file is part of GCC.
@@ -1918,8 +1918,8 @@ dump_alias_info (file)
   if (alias_sets == NULL)
     return;
 
-  fprintf (file, "\nAlias information for %s: %d sets\n\n",
-	   current_function_name, VARRAY_ACTIVE_SIZE (alias_sets));
+  fprintf (file, "\nAlias information for %s: %ld sets\n\n",
+	   current_function_name, (long) VARRAY_ACTIVE_SIZE (alias_sets));
 
   for (i = 0; i < VARRAY_ACTIVE_SIZE (alias_sets); i++)
     {

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-patches mailing list