summaryrefslogtreecommitdiff
path: root/gcc/errors.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-17 22:21:35 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-17 22:21:35 +0000
commitee582a61a63edc4257e8bb2f52ab65356f165249 (patch)
tree719ac752ade2a25c0a0f01395e94e785860a6b61 /gcc/errors.c
parent759a79416513f4efdccce8c5c4dc34cd7021cc2a (diff)
downloadgcc-ee582a61a63edc4257e8bb2f52ab65356f165249.tar.gz
gcc:
* builtins.c (validate_arglist): Eliminate libiberty VA_ macros, always use stdarg. * c-errors.c (pedwarn_c99): Likewise. * c-format.c (status_warning): Likewise. * c-semantics.c (build_stmt): Likewise. * calls.c (emit_library_call, emit_library_call_value): Likewise. * collect2.c (notice, fatal_perror, fatal, error): Likewise. * cpperror.c (cpp_error, cpp_error_with_line): Likewise. * diagnostic.c (build_message_string, output_printf, output_verbatim, verbatim, inform, warning, pedwarn, error, sorry, fatal_error, internal_error, warning_with_decl, pedwarn_with_decl, error_with_decl, fnotice): Likewise. * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr, dw2_asm_output_addr_rtx, dw2_asm_output_nstring, dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128, dw2_asm_output_encoded_addr_rtx): Likewise. * emit-rtl.c (gen_rtx, gen_rtvec): Likewise. * errors.c (warning, error, fatal, internal_error): Likewise. * final.c (output_operand_lossage, asm_fprintf): Likewise. * fix-header.c (fatal): Likewise. * gcc.c (fatal, error, notice): Likewise. * gcov.c (fnotice): Likewise. * genattrtab.c (attr_rtx, attr_printf): Likewise. * gengtype.c (error_at_line, xasprintf, oprintf): Likewise. * gensupport.c (message_with_line): Likewise. * mips-tfile.c (fatal, error): Likewise. * protoize.c (notice): Likewise. * ra-debug.c (ra_debug_msg): Likewise. * read-rtl.c (fatal_with_file_and_line): Likewise. * rtl-error.c (error_for_asm, warning_for_asm): Likewise. * tree.c (build, build_nt, build_function_type_list): Likewise. cp: * error.c (cp_error_at, cp_warning_at, cp_pedwarn_at): Eliminate libiberty VA_ macros, always use stdarg. * rtti.c (create_pseudo_type_info): Likewise. * tree.c (build_min_nt, build_min): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/errors.c')
-rw-r--r--gcc/errors.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/errors.c b/gcc/errors.c
index 02c272fc54d..4147b3fcf0a 100644
--- a/gcc/errors.c
+++ b/gcc/errors.c
@@ -39,14 +39,14 @@ int have_error = 0;
/* Print a warning message - output produced, but there may be problems. */
void
-warning VPARAMS ((const char *format, ...))
+warning (const char *format, ...)
{
- VA_OPEN (ap, format);
- VA_FIXEDARG (ap, const char *, format);
-
+ va_list ap;
+
+ va_start (ap, format);
fprintf (stderr, "%s: warning: ", progname);
vfprintf (stderr, format, ap);
- VA_CLOSE (ap);
+ va_end (ap);
fputc('\n', stderr);
}
@@ -54,14 +54,14 @@ warning VPARAMS ((const char *format, ...))
/* Print an error message - we keep going but the output is unusable. */
void
-error VPARAMS ((const char *format, ...))
+error (const char *format, ...)
{
- VA_OPEN (ap, format);
- VA_FIXEDARG (ap, const char *, format);
-
+ va_list ap;
+
+ va_start (ap, format);
fprintf (stderr, "%s: ", progname);
vfprintf (stderr, format, ap);
- VA_CLOSE (ap);
+ va_end (ap);
fputc('\n', stderr);
have_error = 1;
@@ -71,14 +71,14 @@ error VPARAMS ((const char *format, ...))
/* Fatal error - terminate execution immediately. Does not return. */
void
-fatal VPARAMS ((const char *format, ...))
+fatal (const char *format, ...)
{
- VA_OPEN (ap, format);
- VA_FIXEDARG (ap, const char *, format);
-
+ va_list ap;
+
+ va_start (ap, format);
fprintf (stderr, "%s: ", progname);
vfprintf (stderr, format, ap);
- VA_CLOSE (ap);
+ va_end (ap);
fputc('\n', stderr);
exit (FATAL_EXIT_CODE);
}
@@ -86,14 +86,14 @@ fatal VPARAMS ((const char *format, ...))
/* Similar, but say we got an internal error. */
void
-internal_error VPARAMS ((const char *format, ...))
+internal_error (const char *format, ...)
{
- VA_OPEN (ap, format);
- VA_FIXEDARG (ap, const char *, format);
-
+ va_list ap;
+
+ va_start (ap, format);
fprintf (stderr, "%s: Internal error: ", progname);
vfprintf (stderr, format, ap);
- VA_CLOSE (ap);
+ va_end (ap);
fputc ('\n', stderr);
exit (FATAL_EXIT_CODE);
}