This is the mail archive of the gcc-bugs@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]

egcs-19980502, sprintf bug in haifa-sched.c ...


	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


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