diff options
author | Per Bothner <per@bothner.com> | 2005-03-28 00:04:41 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2005-03-28 00:04:41 -0800 |
commit | 8abb6b2217202164ea30559a793ddbe364bfdd7f (patch) | |
tree | c0af1d58e10b837e10c8f141a5cb792a92065515 /gcc/diagnostic.c | |
parent | cbada204b4afab8ce00f8ba828183cacd22af217 (diff) | |
download | gcc-8abb6b2217202164ea30559a793ddbe364bfdd7f.zip gcc-8abb6b2217202164ea30559a793ddbe364bfdd7f.tar.gz gcc-8abb6b2217202164ea30559a793ddbe364bfdd7f.tar.bz2 |
Make -f[no-]show-column also control non-cpp diagnostics.
* c.opt (fshow-column): Move option from here ...
* common.opt (fshow-column): ... to here.
* diagnostic.c (diagnostic_build_prefix): Only print column number
if flag_show_column.
From-SVN: r97127
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 39b46fc..5d10f0c 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -141,7 +141,7 @@ diagnostic_build_prefix (diagnostic_info *diagnostic) (s.file == NULL ? build_message_string ("%s: %s", progname, text) #ifdef USE_MAPPED_LOCATION - : s.column != 0 + : flag_show_column && s.column != 0 ? build_message_string ("%s:%d:%d: %s", s.file, s.line, s.column, text) #endif : build_message_string ("%s:%d: %s", s.file, s.line, text)); |