aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorShujing Zhao <pzhao@gcc.gnu.org>2010-03-01 09:56:41 +0000
committerShujing Zhao <pzhao@gcc.gnu.org>2010-03-01 09:56:41 +0000
commit894e2652e19f83190daab172efb846d568fb5e11 (patch)
tree3c8a51e597c7b2b45c9e3da4413201d7c7bea223 /gcc/toplev.h
parentfef06326e1d9b67939f0fdff8b36e2c1dd9eaa2d (diff)
downloadgcc-894e2652e19f83190daab172efb846d568fb5e11.zip
gcc-894e2652e19f83190daab172efb846d568fb5e11.tar.gz
gcc-894e2652e19f83190daab172efb846d568fb5e11.tar.bz2
toplev.h (inform_n, error_n): Declare.
gcc/ 2010-03-01 Marco Poletti <poletti.marco@gmail.com> * toplev.h (inform_n, error_n): Declare. * diagnostic.c (inform_n, error_n): New function. gcc/cp/ 2010-03-01 Marco Poletti <poletti.marco@gmail.com> * pt.c (redeclare_class_template): Use error_n and inform_n. gcc/po 2010-03-01 Shujing Zhao <pearly.zhao@oracle.com> * exgettext: Handle the functions that end with _n. From-SVN: r157134
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 983022e..2b2a291 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -63,6 +63,8 @@ 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_n (location_t, int, const char *, const char *, ...)
+ ATTRIBUTE_GCC_DIAG(3,5) ATTRIBUTE_GCC_DIAG(4,5);
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;
@@ -72,6 +74,8 @@ extern bool pedwarn (location_t, int, const char *, ...)
extern bool permerror (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern void sorry (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void inform (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
+extern void inform_n (location_t, int, const char *, const char *, ...)
+ ATTRIBUTE_GCC_DIAG(3,5) ATTRIBUTE_GCC_DIAG(4,5);
extern void verbatim (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void rest_of_decl_compilation (tree, int, int);