This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix fprintf in cfg.c
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <jh at suse dot cz>
- Date: Sun, 26 May 2002 20:53:14 +0200
- Subject: Fix fprintf in cfg.c
Honza, I got this warning:
/cvs/gcc/gcc/cfg.c:558: warning: too many arguments for format
I guess the appended patch is what you intented.
Ok to commit? I'm bootstrapping/regtesting currently on
i686-linux-gnu.
Andreas
2002-05-26 Andreas Jaeger <aj@suse.de>
* cfg.c (dump_flow_info): Remove extra argument to fprintf.
============================================================
Index: gcc/cfg.c
--- gcc/cfg.c 23 May 2002 19:23:36 -0000 1.30
+++ gcc/cfg.c 26 May 2002 18:51:56 -0000
@@ -555,7 +555,7 @@ dump_flow_info (file)
fprintf (file, ", maybe hot");
if (probably_never_executed_bb_p (bb))
fprintf (file, ", probably never executed");
- fprintf (file, ".\n", bb->frequency);
+ fprintf (file, ".\n");
fprintf (file, "Predecessors: ");
for (e = bb->pred; e; e = e->pred_next)
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj