summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-28 16:23:29 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-28 16:23:29 +0000
commit648a8029e0bf9b4736bb6afd359bddf798fd3778 (patch)
tree38b43c524490adad24cd4d5c9105cbbdd3fca991 /gcc/diagnostic.h
parentc449ee3da770a4f00beb847f28833614a3c31e2c (diff)
downloadgcc-648a8029e0bf9b4736bb6afd359bddf798fd3778.tar.gz
* diagnostic.h (diagnostic_set_info): Replace file and lineno
parameters with a location_t. * diagnostic.c (diagnostic_set_info): Replace file and lineno parameters with a location_t. (inform, warning, pedwarn, error, sorry, fatal_error, internal_error, warning_with_decl, pedwarn_with_decl, error_with_decl): Adjust. * c-error.c (pedwarn_c99): Adjust. * c-format.c (status_warning): Adjust. * rtl-error.c (file_and_line_for_asm): Rename to ... (location_for_asm): Return a location_t. (diagnostic_for_asm): Adjust. * cp/cp-tree.h (cp_line_of, cp_file_of): Remove. * cp/error.c (cp_line_of, cp_file_of): Merge into ... (location_of): ... here. Make static, return a location_t. (cp_error_at, cp_warning_at, cp_pedwarn_at): Adjust. * testsuite/g++.old-deja/g++.robertl/eb133.C: Set expected line number. * testsuite/g++.old-deja/g++.robertl/eb133a.C: Likewise. * testsuite/g++.old-deja/g++.robertl/eb133b.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68643 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 80d6a44d68d..18a11b67354 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -298,7 +298,7 @@ extern void diagnostic_flush_buffer (diagnostic_context *);
extern void diagnostic_report_diagnostic (diagnostic_context *,
diagnostic_info *);
extern void diagnostic_set_info (diagnostic_info *, const char *, va_list *,
- const char *, int, diagnostic_t);
+ location_t, diagnostic_t);
extern char *diagnostic_build_prefix (diagnostic_info *);
/* Pure text formatting support functions. */