aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2013-08-29 13:51:04 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2013-08-29 13:51:04 +0000
commit103ff0d65e9033a2fdf05b4f4c9b7686d95e78c0 (patch)
treefc61cacb307eeb74176a0b795fc6db1199798047 /gcc/dumpfile.c
parent301bbc16628d9ca57cd7b0af306fde6753f04911 (diff)
downloadgcc-103ff0d65e9033a2fdf05b4f4c9b7686d95e78c0.zip
gcc-103ff0d65e9033a2fdf05b4f4c9b7686d95e78c0.tar.gz
gcc-103ff0d65e9033a2fdf05b4f4c9b7686d95e78c0.tar.bz2
dumpfile.c (dump_loc): Output column number.
2013-08-29 Teresa Johnson <tejohnson@google.com> * dumpfile.c (dump_loc): Output column number. * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL. * doc/invoke.texi: Document optall -fopt-info flag. * profile.c (read_profile_edge_counts): Use new dump framework. (compute_branch_probabilities): Ditto. * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER when pass not in any opt group. * pass_manager.h (pass_manager::get_pass_profile): New method. * value-prof.c (check_counter): Use new dump framework. (check_ic_target): Ditto. * coverage.c (get_coverage_counts): Ditto. (coverage_init): Setup new dump framework. * testsuite/gcc.dg/pr40209.c: Use -fopt-info. * testsuite/gcc.dg/pr26570.c: Ditto. * testsuite/gcc.dg/pr32773.c: Ditto. * testsuite/g++.dg/tree-ssa/dom-invalid.C: Ditto. * testsuite/gcc.dg/inline-dump.c: New test. From-SVN: r202077
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 9c97512..6f15634 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -259,16 +259,16 @@ dump_open_alternate_stream (struct dump_file_info *dfi)
void
dump_loc (int dump_kind, FILE *dfile, source_location loc)
{
- /* Currently vectorization passes print location information. */
if (dump_kind)
{
if (LOCATION_LOCUS (loc) > BUILTINS_LOCATION)
- fprintf (dfile, "\n%s:%d: note: ", LOCATION_FILE (loc),
- LOCATION_LINE (loc));
+ fprintf (dfile, "\n%s:%d:%d: note: ", LOCATION_FILE (loc),
+ LOCATION_LINE (loc), LOCATION_COLUMN (loc));
else if (current_function_decl)
- fprintf (dfile, "\n%s:%d: note: ",
+ fprintf (dfile, "\n%s:%d:%d: note: ",
DECL_SOURCE_FILE (current_function_decl),
- DECL_SOURCE_LINE (current_function_decl));
+ DECL_SOURCE_LINE (current_function_decl),
+ DECL_SOURCE_COLUMN (current_function_decl));
}
}