diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-01-14 00:46:57 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-01-14 00:46:57 +0000 |
commit | 83d2b3b9dc691168719b0c77bc5c9a4d10e6384b (patch) | |
tree | 777969cebe29c86ba06933f784b922ec19ce6063 /gcc/diagnostic.c | |
parent | 57bed15271e83402b6d8d6647f6589718e70916d (diff) | |
download | gcc-83d2b3b9dc691168719b0c77bc5c9a4d10e6384b.zip gcc-83d2b3b9dc691168719b0c77bc5c9a4d10e6384b.tar.gz gcc-83d2b3b9dc691168719b0c77bc5c9a4d10e6384b.tar.bz2 |
cccp.c: PROTO -> PARAMS.
* cccp.c: PROTO -> PARAMS.
* cexp.y: Likewise.
* collect2.c: Likewise.
* combine.c: Likewise.
* convert.h: Likewise.
* cse.c: Likewise.
* dbxout.c: Likewise.
* dbxout.h: Likewise.
* diagnostic.c: Likewise.
* doprint.c: Likewise.
* dwarf2out.c: Likewise.
* dwarf2out.h: Likewise.
* dwarfout.c: Likewise.
* dwarfout.h: Likewise.
* dyn-string.h: Likewise.
From-SVN: r31399
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 135 |
1 files changed, 68 insertions, 67 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 9d2eead..175151b 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -1,5 +1,5 @@ /* Top level of GNU C compiler - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -51,49 +51,50 @@ struct output_buffer }; /* Prototypes. */ -static int doing_line_wrapping PROTO((void)); -static void init_output_buffer PROTO((struct output_buffer*, - const char *, int)); -static const char *get_output_prefix PROTO((const struct output_buffer *)); -static int output_space_left PROTO((const struct output_buffer *)); -static void emit_output_prefix PROTO((struct output_buffer *)); -static void output_newline PROTO((struct output_buffer *)); -static void output_append PROTO((struct output_buffer *, const char *, - const char *)); -static void output_puts PROTO((struct output_buffer *, const char *)); -static void dump_output PROTO((struct output_buffer *, FILE *)); -static const char *vbuild_message_string PROTO((const char *, va_list)); -static const char *build_message_string PVPROTO((const char *, ...)); -static const char *build_location_prefix PROTO((const char *, int, int)); -static void voutput_notice PROTO((struct output_buffer *, const char *, - va_list)); -static void output_printf PVPROTO((struct output_buffer *, const char *, ...)); -static void line_wrapper_printf PVPROTO((FILE *, const char *, ...)); -static void vline_wrapper_message_with_location PROTO((const char *, int, int, - const char *, va_list)); -static void notice PVPROTO((const char *s, ...)) ATTRIBUTE_PRINTF_1; -static void v_message_with_file_and_line PROTO((const char *, int, int, +static int doing_line_wrapping PARAMS ((void)); +static void init_output_buffer PARAMS ((struct output_buffer*, + const char *, int)); +static const char *get_output_prefix PARAMS ((const struct output_buffer *)); +static int output_space_left PARAMS ((const struct output_buffer *)); +static void emit_output_prefix PARAMS ((struct output_buffer *)); +static void output_newline PARAMS ((struct output_buffer *)); +static void output_append PARAMS ((struct output_buffer *, const char *, + const char *)); +static void output_puts PARAMS ((struct output_buffer *, const char *)); +static void dump_output PARAMS ((struct output_buffer *, FILE *)); +static const char *vbuild_message_string PARAMS ((const char *, va_list)); +static const char *build_message_string PARAMS ((const char *, ...)); +static const char *build_location_prefix PARAMS ((const char *, int, int)); +static void voutput_notice PARAMS ((struct output_buffer *, const char *, + va_list)); +static void output_printf PARAMS ((struct output_buffer *, const char *, ...)); +static void line_wrapper_printf PARAMS ((FILE *, const char *, ...)); +static void vline_wrapper_message_with_location PARAMS ((const char *, int, + int, const char *, + va_list)); +static void notice PARAMS ((const char *s, ...)) ATTRIBUTE_PRINTF_1; +static void v_message_with_file_and_line PARAMS ((const char *, int, int, + const char *, va_list)); +static void v_message_with_decl PARAMS ((tree, int, const char *, va_list)); +static void file_and_line_for_asm PARAMS ((rtx, char **, int *)); +static void v_error_with_file_and_line PARAMS ((const char *, int, const char *, va_list)); -static void v_message_with_decl PROTO((tree, int, const char *, va_list)); -static void file_and_line_for_asm PROTO((rtx, char **, int *)); -static void v_error_with_file_and_line PROTO((const char *, int, - const char *, va_list)); -static void v_error_with_decl PROTO((tree, const char *, va_list)); -static void v_error_for_asm PROTO((rtx, const char *, va_list)); -static void verror PROTO((const char *, va_list)); -static void vfatal PROTO((const char *, va_list)) ATTRIBUTE_NORETURN; -static void v_warning_with_file_and_line PROTO ((const char *, int, - const char *, va_list)); -static void v_warning_with_decl PROTO((tree, const char *, va_list)); -static void v_warning_for_asm PROTO((rtx, const char *, va_list)); -static void vwarning PROTO((const char *, va_list)); -static void vpedwarn PROTO((const char *, va_list)); -static void v_pedwarn_with_decl PROTO((tree, const char *, va_list)); -static void v_pedwarn_with_file_and_line PROTO((const char *, int, - const char *, va_list)); -static void vsorry PROTO((const char *, va_list)); -static void report_file_and_line PROTO ((const char *, int, int)); -static void vnotice PROTO ((FILE *, const char *, va_list)); +static void v_error_with_decl PARAMS ((tree, const char *, va_list)); +static void v_error_for_asm PARAMS ((rtx, const char *, va_list)); +static void verror PARAMS ((const char *, va_list)); +static void vfatal PARAMS ((const char *, va_list)) ATTRIBUTE_NORETURN; +static void v_warning_with_file_and_line PARAMS ((const char *, int, + const char *, va_list)); +static void v_warning_with_decl PARAMS ((tree, const char *, va_list)); +static void v_warning_for_asm PARAMS ((rtx, const char *, va_list)); +static void vwarning PARAMS ((const char *, va_list)); +static void vpedwarn PARAMS ((const char *, va_list)); +static void v_pedwarn_with_decl PARAMS ((tree, const char *, va_list)); +static void v_pedwarn_with_file_and_line PARAMS ((const char *, int, + const char *, va_list)); +static void vsorry PARAMS ((const char *, va_list)); +static void report_file_and_line PARAMS ((const char *, int, int)); +static void vnotice PARAMS ((FILE *, const char *, va_list)); extern int rtl_dump_and_exit; @@ -115,7 +116,7 @@ static int last_error_tick; /* Called by report_error_function to print out function name. * Default may be overridden by language front-ends. */ -void (*print_error_function) PROTO((const char *)) = +void (*print_error_function) PARAMS ((const char *)) = default_print_error_function; /* Maximum characters per line in automatic line wrapping mode. @@ -283,7 +284,7 @@ vbuild_message_string (msgid, ap) printf. The caller is reponsible for freeing the memory. */ static const char * -build_message_string VPROTO((const char *msgid, ...)) +build_message_string VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *msgid; @@ -341,7 +342,7 @@ voutput_notice (buffer, msgid, ap) /* Format a message into BUFFER a la printf. */ static void -output_printf VPROTO((struct output_buffer *buffer, const char *msgid, ...)) +output_printf VPARAMS ((struct output_buffer *buffer, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES struct output_buffer *buffer; @@ -365,7 +366,7 @@ output_printf VPROTO((struct output_buffer *buffer, const char *msgid, ...)) with PREFIX. */ static void -line_wrapper_printf VPROTO((FILE *file, const char *msgid, ...)) +line_wrapper_printf VPARAMS ((FILE *file, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES FILE *file; @@ -422,7 +423,7 @@ vnotice (file, msgid, ap) /* Print MSGID on stderr. */ static void -notice VPROTO((const char *msgid, ...)) +notice VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES char *msgid; @@ -656,7 +657,7 @@ verror (msgid, ap) /* Report a fatal error at the current line number. Allow a front end to intercept the message. */ -static void (*fatal_function) PROTO ((const char *, va_list)); +static void (*fatal_function) PARAMS ((const char *, va_list)); static void vfatal (msgid, ap) @@ -838,7 +839,7 @@ count_error (warningp) /* Print a diagnistic MSGID on FILE. */ void -fnotice VPROTO((FILE *file, const char *msgid, ...)) +fnotice VPARAMS ((FILE *file, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES FILE *file; @@ -880,7 +881,7 @@ fatal_io_error (name) /* Issue a pedantic warning MSGID. */ void -pedwarn VPROTO((const char *msgid, ...)) +pedwarn VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *msgid; @@ -899,7 +900,7 @@ pedwarn VPROTO((const char *msgid, ...)) /* Issue a pedantic waring about DECL. */ void -pedwarn_with_decl VPROTO((tree decl, const char *msgid, ...)) +pedwarn_with_decl VPARAMS ((tree decl, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES tree decl; @@ -920,8 +921,8 @@ pedwarn_with_decl VPROTO((tree decl, const char *msgid, ...)) /* Same as above but within the context FILE and LINE. */ void -pedwarn_with_file_and_line VPROTO((const char *file, int line, - const char *msgid, ...)) +pedwarn_with_file_and_line VPARAMS ((const char *file, int line, + const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *file; @@ -944,7 +945,7 @@ pedwarn_with_file_and_line VPROTO((const char *file, int line, /* Just apologize with MSGID. */ void -sorry VPROTO((const char *msgid, ...)) +sorry VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *msgid; @@ -1081,8 +1082,8 @@ report_error_function (file) } void -error_with_file_and_line VPROTO((const char *file, int line, - const char *msgid, ...)) +error_with_file_and_line VPARAMS ((const char *file, int line, + const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *file; @@ -1104,7 +1105,7 @@ error_with_file_and_line VPROTO((const char *file, int line, } void -error_with_decl VPROTO((tree decl, const char *msgid, ...)) +error_with_decl VPARAMS ((tree decl, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES tree decl; @@ -1124,7 +1125,7 @@ error_with_decl VPROTO((tree decl, const char *msgid, ...)) } void -error_for_asm VPROTO((rtx insn, const char *msgid, ...)) +error_for_asm VPARAMS ((rtx insn, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES rtx insn; @@ -1144,7 +1145,7 @@ error_for_asm VPROTO((rtx insn, const char *msgid, ...)) } void -error VPROTO((const char *msgid, ...)) +error VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *msgid; @@ -1165,13 +1166,13 @@ error VPROTO((const char *msgid, ...)) void set_fatal_function (f) - void (*f) PROTO ((const char *, va_list)); + void (*f) PARAMS ((const char *, va_list)); { fatal_function = f; } void -fatal VPROTO((const char *msgid, ...)) +fatal VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *msgid; @@ -1216,8 +1217,8 @@ _fatal_insn_not_found (insn, file, line, function) } void -warning_with_file_and_line VPROTO((const char *file, int line, - const char *msgid, ...)) +warning_with_file_and_line VPARAMS ((const char *file, int line, + const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *file; @@ -1239,7 +1240,7 @@ warning_with_file_and_line VPROTO((const char *file, int line, } void -warning_with_decl VPROTO((tree decl, const char *msgid, ...)) +warning_with_decl VPARAMS ((tree decl, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES tree decl; @@ -1259,7 +1260,7 @@ warning_with_decl VPROTO((tree decl, const char *msgid, ...)) } void -warning_for_asm VPROTO((rtx insn, const char *msgid, ...)) +warning_for_asm VPARAMS ((rtx insn, const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES rtx insn; @@ -1279,7 +1280,7 @@ warning_for_asm VPROTO((rtx insn, const char *msgid, ...)) } void -warning VPROTO((const char *msgid, ...)) +warning VPARAMS ((const char *msgid, ...)) { #ifndef ANSI_PROTOTYPES const char *msgid; |