summaryrefslogtreecommitdiff
path: root/gcc/input.h
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-04-11 09:26:48 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-04-11 09:26:48 +0000
commit9fec00429dd36ea51798afeaf5f6b9c1987b85cd (patch)
tree9e780906c85f6be0ad543abba26314c0c15e5512 /gcc/input.h
parent13a7578b180de6d8bb91a2f340817e71c61a9988 (diff)
re PR c++/24985 (caret diagnostics)
2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org> PR 24985 gcc/ * diagnostic.h (show_caret): Declare. (caret_max_width): Declare. (diagnostic_show_locus): Declare. * diagnostic.c (diagnostic_initialize): Initialize to false. (diagnostic_show_locus): New. (diagnostic_report_diagnostic): Call it. (getenv_columns): New. (adjust_line): New. (diagnostic_set_caret_max_width): New. * input.c (read_line): New. (location_get_source_line): New. * input.h (location_get_source_line): Declare. * toplev.c (general_init): Initialize show_caret from options. * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret. * opts.c (common_handle_option): Likewise. * pretty-print.h (pp_get_prefix): New. (pp_base_get_prefix): New. * common.opt (fdiagnostics-show-caret): New option. * doc/invoke.texi (fdiagnostics-show-caret): Document it. testsuite/ * lib/prune.exp: Add -fno-diagnostics-show-caret. libstdc++-v3/ * testsuite/lib/prune.exp: Handle caret. libmudflap/ * testsuite/lib/libmudflap.exp: Handle caret. From-SVN: r186305
Diffstat (limited to 'gcc/input.h')
-rw-r--r--gcc/input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/input.h b/gcc/input.h
index f2f351311fc..4b152228fc4 100644
--- a/gcc/input.h
+++ b/gcc/input.h
@@ -38,6 +38,7 @@ extern char builtins_location_check[(BUILTINS_LOCATION
< RESERVED_LOCATION_COUNT) ? 1 : -1];
extern expanded_location expand_location (source_location);
+extern const char * location_get_source_line(expanded_location xloc);
/* Historically GCC used location_t, while cpp used source_location.
This could be removed but it hardly seems worth the effort. */