summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-22 18:41:05 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-22 18:41:05 +0000
commit16bf93e576496660663ba19e26990362b7f9287e (patch)
tree1cdfebb14f928bf66cf2dcec028f0342806d1b1e /gcc/system.h
parent5e084fd085a4ab185b7476d144157bbf1eacfef5 (diff)
downloadgcc-16bf93e576496660663ba19e26990362b7f9287e.tar.gz
* diagnostic.c (init_output_buffer): Don't initialize format_args.
(output_clear): Likewise. (output_printf): Use va_copy. (vline_wrapper_message_with_location): Likewise. (v_message_with_decl): Likewise. (line_wrapper_printf): VA_START infor buffer.format_args directly. * system.h (va_copy): Provide default implementation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33341 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 0d1da2cd3f2..407897759cf 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -35,6 +35,14 @@ Boston, MA 02111-1307, USA. */
#include <varargs.h>
#endif
+#ifndef va_copy
+# ifdef __va_copy
+# define va_copy(d,s) __va_copy((d),(s))
+# else
+# define va_copy(d,s) ((d) = (s))
+# endif
+#endif
+
#include <stdio.h>
/* Define a generic NULL if one hasn't already been defined. */