egcs-19980502, sprintf bug in haifa-sched.c ...
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Tue May 5 12:39:00 GMT 1998
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
More information about the Gcc-bugs
mailing list