aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-06-28 16:23:29 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-06-28 16:23:29 +0000
commit9a472a42247d099c512b6d992890f88643612c8c (patch)
tree38b43c524490adad24cd4d5c9105cbbdd3fca991 /gcc/c-format.c
parentdebdeb5d7073803b2acc0f92a0c8b09d1cfde5e5 (diff)
downloadgcc-9a472a42247d099c512b6d992890f88643612c8c.zip
gcc-9a472a42247d099c512b6d992890f88643612c8c.tar.gz
gcc-9a472a42247d099c512b6d992890f88643612c8c.tar.bz2
diagnostic.h (diagnostic_set_info): Replace file and lineno parameters with a location_t.
* 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. From-SVN: r68643
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r--gcc/c-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c
index 5bae1c2..dc17f0e 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -1004,7 +1004,7 @@ status_warning (int *status, const char *msgid, ...)
{
/* This duplicates the warning function behavior. */
diagnostic_set_info (&diagnostic, _(msgid), &ap,
- input_filename, input_line, DK_WARNING);
+ input_location, DK_WARNING);
report_diagnostic (&diagnostic);
}