Commit 8abb6b22 by Per Bothner Committed by Per Bothner

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
parent cbada204
2005-03-26 Per Bothner <per@bothner.com>
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.
2005-03-27 Steven Bosscher <stevenb@suse.de> 2005-03-27 Steven Bosscher <stevenb@suse.de>
* vax-protos.h (vax_output_int_move, vax_output_int_add, * vax-protos.h (vax_output_int_move, vax_output_int_add,
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
; Software Foundation, 59 Temple Place - Suite 330, Boston, MA ; Software Foundation, 59 Temple Place - Suite 330, Boston, MA
; 02111-1307, USA. ; 02111-1307, USA.
; See the GCC internals manual for a description of this file's format.
; Please try to keep this file in ASCII collating order. ; Please try to keep this file in ASCII collating order.
...@@ -606,9 +607,6 @@ fshort-wchar ...@@ -606,9 +607,6 @@ fshort-wchar
C ObjC C++ ObjC++ C ObjC C++ ObjC++
Force the underlying type for \"wchar_t\" to be \"unsigned short\" Force the underlying type for \"wchar_t\" to be \"unsigned short\"
fshow-column
C ObjC C++ ObjC++
fsigned-bitfields fsigned-bitfields
C ObjC C++ ObjC++ C ObjC C++ ObjC++
When \"signed\" or \"unsigned\" is not given make the bitfield signed When \"signed\" or \"unsigned\" is not given make the bitfield signed
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
; Software Foundation, 59 Temple Place - Suite 330, Boston, MA ; Software Foundation, 59 Temple Place - Suite 330, Boston, MA
; 02111-1307, USA. ; 02111-1307, USA.
; See c.opt for a description of this file's format. ; See the GCC internals manual for a description of this file's format.
; Please try to keep this file in ASCII collating order. ; Please try to keep this file in ASCII collating order.
...@@ -732,6 +732,10 @@ fshared-data ...@@ -732,6 +732,10 @@ fshared-data
Common Report Var(flag_shared_data) Common Report Var(flag_shared_data)
Mark data as shared rather than private Mark data as shared rather than private
fshow-column
Common C ObjC C++ ObjC++ Report Var(flag_show_column) Init(1)
Show column numbers in diagnostics, when available. Default on.
fsignaling-nans fsignaling-nans
Common Report Var(flag_signaling_nans) Common Report Var(flag_signaling_nans)
Disable optimizations observable by IEEE signaling NaNs Disable optimizations observable by IEEE signaling NaNs
......
...@@ -141,7 +141,7 @@ diagnostic_build_prefix (diagnostic_info *diagnostic) ...@@ -141,7 +141,7 @@ diagnostic_build_prefix (diagnostic_info *diagnostic)
(s.file == NULL (s.file == NULL
? build_message_string ("%s: %s", progname, text) ? build_message_string ("%s: %s", progname, text)
#ifdef USE_MAPPED_LOCATION #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) ? build_message_string ("%s:%d:%d: %s", s.file, s.line, s.column, text)
#endif #endif
: build_message_string ("%s:%d: %s", s.file, s.line, text)); : build_message_string ("%s:%d: %s", s.file, s.line, text));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment