summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-11 09:26:48 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-11 09:26:48 +0000
commit5a9830842f69ebb059061e26f8b0699cbd85121e (patch)
tree9e780906c85f6be0ad543abba26314c0c15e5512 /libstdc++-v3
parent980af7e02e2f824385a01dea0b053074a70c1645 (diff)
downloadgcc-5a9830842f69ebb059061e26f8b0699cbd85121e.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186305 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/lib/prune.exp7
2 files changed, 12 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9bd426812e7..ba608fec035 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR 24985
+ * testsuite/lib/prune.exp: Handle caret.
+
2012-04-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Partially revert:
diff --git a/libstdc++-v3/testsuite/lib/prune.exp b/libstdc++-v3/testsuite/lib/prune.exp
index a5644061d23..a2371c60d5f 100644
--- a/libstdc++-v3/testsuite/lib/prune.exp
+++ b/libstdc++-v3/testsuite/lib/prune.exp
@@ -32,6 +32,12 @@ proc dg-prune-output { args } {
proc libstdc++-dg-prune { system text } {
global additional_prunes
+# send_user "Before:$text\n"
+
+ # Ignore caret diagnostics. Unfortunately dejaGNU trims leading
+ # spaces, so one cannot rely on them being present.
+ regsub -all "(^|\n)\[^\n\]+\n *\\^\n" $text "\n" text
+
# Cygwin warns about -ffunction-sections
regsub -all "(^|\n)\[^\n\]*: -ffunction-sections may affect debugging on some targets\[^\n\]*" $text "" text
@@ -68,5 +74,6 @@ proc libstdc++-dg-prune { system text } {
}
}
+# send_user "After:$text\n"
return $text
}