aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-linemap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-linemap.cc')
-rw-r--r--gcc/rust/rust-linemap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/rust-linemap.cc b/gcc/rust/rust-linemap.cc
index fef4603..5ee76bd 100644
--- a/gcc/rust/rust-linemap.cc
+++ b/gcc/rust/rust-linemap.cc
@@ -72,7 +72,8 @@ Gcc_linemap::to_string (Location location)
// Strip the source file down to the base file, to reduce clutter.
std::stringstream ss;
- ss << lbasename (path) << ":" << SOURCE_LINE (lmo, location.gcc_location ());
+ ss << lbasename (path) << ":" << SOURCE_LINE (lmo, location.gcc_location ())
+ << ":" << SOURCE_COLUMN (lmo, location.gcc_location ());
return ss.str ();
}