This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-19980502, sprintf bug in haifa-sched.c ...
- To: egcs-bugs at cygnus dot com
- Subject: egcs-19980502, sprintf bug in haifa-sched.c ...
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 5 May 1998 15:39:29 -0400 (EDT)
Here is a code snippet from egcs-19980502/gcc/haifa-sched.c
which produces the following warning during bootstrap:
> haifa-sched.c: In function `print_value':
> haifa-sched.c:5996: warning: int format, pointer arg (arg 3)
> haifa-sched.c:5996: warning: too many arguments for format
> case SUBREG:
> print_value (t, SUBREG_REG (x), verbose);
> cur = safe_concat (buf, cur, t);
> sprintf (t, "#%d", t, SUBREG_WORD (x));
> cur = safe_concat (buf, cur, t);
> break;
What would be the correct argument list in this case?
--Kaveh