aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Wood <wood@gnu.org>1992-03-07 19:54:12 +0000
committerTom Wood <wood@gnu.org>1992-03-07 19:54:12 +0000
commitca2d2f1ed0dd3a81f8dcbc814517bef3872fb4ee (patch)
tree8dd2e0b06f3d5b591007837483359f82dc848b7c /gcc
parent6ab6f071765945426b9add40dc25d47f3e4391be (diff)
downloadgcc-ca2d2f1ed0dd3a81f8dcbc814517bef3872fb4ee.zip
gcc-ca2d2f1ed0dd3a81f8dcbc814517bef3872fb4ee.tar.gz
gcc-ca2d2f1ed0dd3a81f8dcbc814517bef3872fb4ee.tar.bz2
*** empty log message ***
From-SVN: r414
Diffstat (limited to 'gcc')
-rw-r--r--gcc/genattrtab.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index ea99a94..40894ad 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -522,6 +522,8 @@ attr_rtx (va_alist)
rtx attr_printf (len, format, [arg1, ..., argn]) */
+#ifdef HAVE_VPRINTF
+
/*VARARGS2*/
static char *
attr_printf (va_alist)
@@ -543,6 +545,24 @@ attr_printf (va_alist)
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
to be null terminated) with LEN bytes. */