mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 02:14:55 +08:00
*** empty log message ***
From-SVN: r414
This commit is contained in:
parent
6ab6f07176
commit
ca2d2f1ed0
@ -522,6 +522,8 @@ attr_rtx (va_alist)
|
|||||||
|
|
||||||
rtx attr_printf (len, format, [arg1, ..., argn]) */
|
rtx attr_printf (len, format, [arg1, ..., argn]) */
|
||||||
|
|
||||||
|
#ifdef HAVE_VPRINTF
|
||||||
|
|
||||||
/*VARARGS2*/
|
/*VARARGS2*/
|
||||||
static char *
|
static char *
|
||||||
attr_printf (va_alist)
|
attr_printf (va_alist)
|
||||||
@ -543,6 +545,24 @@ attr_printf (va_alist)
|
|||||||
return attr_string (str, strlen (str));
|
return attr_string (str, strlen (str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* not HAVE_VPRINTF */
|
||||||
|
|
||||||
|
static char *
|
||||||
|
attr_printf (len, fmt, arg1, arg2, arg3)
|
||||||
|
int len;
|
||||||
|
char *fmt;
|
||||||
|
char *arg1, *arg2, *arg3; /* also int */
|
||||||
|
{
|
||||||
|
register char *str;
|
||||||
|
|
||||||
|
/* Print the string into a temporary location. */
|
||||||
|
str = (char *) alloca (len);
|
||||||
|
sprintf (str, fmt, arg1, arg2, arg3);
|
||||||
|
|
||||||
|
return attr_string (str, strlen (str));
|
||||||
|
}
|
||||||
|
#endif /* not HAVE_VPRINTF */
|
||||||
|
|
||||||
/* Return a permanent (possibly shared) copy of a string STR (not assumed
|
/* Return a permanent (possibly shared) copy of a string STR (not assumed
|
||||||
to be null terminated) with LEN bytes. */
|
to be null terminated) with LEN bytes. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user