* diagnostic.h (diagnostic_set_info): Replace file and lineno
commit648a8029e0bf9b4736bb6afd359bddf798fd3778
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2003 16:23:29 +0000 (28 16:23 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2003 16:23:29 +0000 (28 16:23 +0000)
tree38b43c524490adad24cd4d5c9105cbbdd3fca991
parentc449ee3da770a4f00beb847f28833614a3c31e2c
* 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
13 files changed:
gcc/ChangeLog
gcc/c-errors.c
gcc/c-format.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/diagnostic.c
gcc/diagnostic.h
gcc/rtl-error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.robertl/eb133.C
gcc/testsuite/g++.old-deja/g++.robertl/eb133a.C
gcc/testsuite/g++.old-deja/g++.robertl/eb133b.C