diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-10-03 21:22:10 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-10-03 21:22:10 +0000 |
commit | bb42836b34dca74aab99035ac236fa6e81b1d4c1 (patch) | |
tree | 9c4233d4502ee9e2a111926323f9eef01f8f6152 /gcc/tree-pretty-print.c | |
parent | acbb0489b6d3db1ff6712fbda32405d45f0b8b30 (diff) | |
download | gcc-bb42836b34dca74aab99035ac236fa6e81b1d4c1.zip gcc-bb42836b34dca74aab99035ac236fa6e81b1d4c1.tar.gz gcc-bb42836b34dca74aab99035ac236fa6e81b1d4c1.tar.bz2 |
tree-pretty-print.c (dump_location): Make it extern.
gcc/ChangeLog:
2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
* tree-pretty-print.c (dump_location): Make it extern. Dump also
the column.
* tree-pretty-print.h (dump_location): Declare.
* gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
(pp_gimple_stmt_1): Likewise.
(dump_implicit_edges): Likewise.
* gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
LOCATION_LINE.
gcc/testsuite/ChangeLog:
2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gcc.dg/tm/debug-1.c: Update regex.
* c-c++-common/raw-string-18.c: Update regex.
* c-c++-common/raw-string-19.c: Update regex.
From-SVN: r215879
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ce0c655..0a59aac 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -677,7 +677,7 @@ dump_omp_clauses (pretty_printer *buffer, tree clause, int spc, int flags) /* Dump location LOC to BUFFER. */ -static void +void dump_location (pretty_printer *buffer, location_t loc) { expanded_location xloc = expand_location (loc); @@ -686,9 +686,11 @@ dump_location (pretty_printer *buffer, location_t loc) if (xloc.file) { pp_string (buffer, xloc.file); - pp_string (buffer, " : "); + pp_string (buffer, ":"); } pp_decimal_int (buffer, xloc.line); + pp_colon (buffer); + pp_decimal_int (buffer, xloc.column); pp_string (buffer, "] "); } |