summaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-03 01:00:04 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-03 01:00:04 +0000
commit3bc1df45311c2c63dac648d2bd165d5506ec3edd (patch)
treee8cf01ea25ea102fb71086ca128988be07714307 /gcc/toplev.h
parent947ad53f0dd2391514614b45608cd95a925ef34d (diff)
downloadgcc-3bc1df45311c2c63dac648d2bd165d5506ec3edd.tar.gz
* diagnostic.c (error_at): New.
* toplev.h (error_at): New prototype. * c-typeck.c (build_array_ref): Call error_at instead of error. Pass location to pedwarn. cp/ * typeck.c (build_array_ref): Use new location argument. * class.c (build_vtbl_ref_1): Pass location to build_array_ref. * call.c (build_new_op): Same. * decl2.c (grok_array_decl): Same. * cp-tree.h (build_array_ref): Add location argument to prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139924 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 5555bf1e093..552ed3367d2 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -61,6 +61,7 @@ extern bool warning (int, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern bool warning_at (location_t, int, const char *, ...)
ATTRIBUTE_GCC_DIAG(3,4);
extern void error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
+extern void error_at (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern void fatal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
ATTRIBUTE_NORETURN;
/* Pass one of the OPT_W* from options.h as the second parameter. */