diff options
author | Richard Henderson <rth@cygnus.com> | 2000-04-22 11:41:05 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-04-22 11:41:05 -0700 |
commit | 6f81b1ade69b0a968ba6fe5ea1e633cb75a11db4 (patch) | |
tree | 1cdfebb14f928bf66cf2dcec028f0342806d1b1e /gcc/system.h | |
parent | d9490f2f4ebedc6c568b963b230f20b298a22159 (diff) | |
download | gcc-6f81b1ade69b0a968ba6fe5ea1e633cb75a11db4.zip gcc-6f81b1ade69b0a968ba6fe5ea1e633cb75a11db4.tar.gz gcc-6f81b1ade69b0a968ba6fe5ea1e633cb75a11db4.tar.bz2 |
diagnostic.c (init_output_buffer): Don't initialize format_args.
* 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.
From-SVN: r33341
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 0d1da2c..4078977 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. */ |