aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-core.h
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2016-10-08 17:04:35 +0000
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>2016-10-08 17:04:35 +0000
commita5fb7ad2d1326974357dee443562bdc5b700e3db (patch)
tree40a8e38ed15b8f38742563f23685bc43b2118f81 /gcc/diagnostic-core.h
parent9c453de707ce714df89fa97e842933934ac3fc42 (diff)
downloadgcc-a5fb7ad2d1326974357dee443562bdc5b700e3db.zip
gcc-a5fb7ad2d1326974357dee443562bdc5b700e3db.tar.gz
gcc-a5fb7ad2d1326974357dee443562bdc5b700e3db.tar.bz2
diagnostic-core.h (warning_at_rich_loc_n): Declare.
2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> * diagnostic-core.h (warning_at_rich_loc_n): Declare. * diagnostic.c (warning_at_rich_loc_n): New function. (diagnostic_n_impl_richloc): Likewise. (diagnostic_n_impl): Move most of the function to diagnostic_n_impl_richloc and call it. From-SVN: r240891
Diffstat (limited to 'gcc/diagnostic-core.h')
-rw-r--r--gcc/diagnostic-core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic-core.h b/gcc/diagnostic-core.h
index 51df150..4a1766c 100644
--- a/gcc/diagnostic-core.h
+++ b/gcc/diagnostic-core.h
@@ -65,6 +65,9 @@ extern bool warning_at (location_t, int, const char *, ...)
ATTRIBUTE_GCC_DIAG(3,4);
extern bool warning_at_rich_loc (rich_location *, int, const char *, ...)
ATTRIBUTE_GCC_DIAG(3,4);
+extern bool warning_at_rich_loc_n (rich_location *, int, int, const char *,
+ const char *, ...)
+ ATTRIBUTE_GCC_DIAG(4, 6) ATTRIBUTE_GCC_DIAG(5, 6);
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);