summaryrefslogtreecommitdiffstats
path: root/gcc/c-errors.c
Commit message (Collapse)AuthorAgeFilesLines
* * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.gdr2000-08-201-2/+4
| | | | | | | | | | | | | | | | | | | | | | * diagnostic.c (default_diagnostic_starter, default_diagnostic_finalizer): New functions. (diagnostic_for_asm, diagnostic_for_decl): Tweak. (pedwarn, pedwarn_with_file_and_line, error, error_with_file_and_line, fatal, warning, warning_with_file_and_line): Adjust call to report_diagnostic. (report_diagnostic): Rework. (set_diagnostic_context): New function. * diagnostic.h (struct diagnostic_context): New data structure. (diagnostic_message, diagnostic_argument_list, diagnostic_file_location, diagnostic_line_location, diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer, diagnostic_finalizer, diagnostic_auxiliary_data): New macros. (set_diagnostic_context): Declare. (report_diagnostic): Change prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35817 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>gdr2000-07-181-1/+2
| | | | | | | | | | | | | | | | | | | * diagnostic.h (report_diagnostic): Change prototype. * diagnostic.c (output_do_verbatim, diagnostic_for_asm, diagnostic_for_decl): Change prototype. (error_with_decl, warning_with_decl, pedwarn_with_decl, warning, error, warning, error_with_file_and_line, warning_with_file_and_line, pedwarn_with_file_and_line, fatal): Adjust call to report_diagnostic, diagnostic_for_decl. (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm. (output_verbatim, verbatim): Adjust call to output_do_verbatim. * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End varaible argument list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35116 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>gdr2000-07-121-0/+48
* c-typeck.c (pedwarn_c99): Move to * c-errors.c: ... Here. * toplev.h (verror, vwarning, vpedwarn): Remove prototypes. * diagnostic.c (verror, vwarning, vpedwarn): Make static. * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o (c-errors.o): List dependency. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34984 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud