mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 22:51:38 +08:00
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
This commit is contained in:
parent
cbada204b4
commit
8abb6b2217
@ -1,3 +1,11 @@
|
||||
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>
|
||||
|
||||
* vax-protos.h (vax_output_int_move, vax_output_int_add,
|
||||
|
@ -18,6 +18,7 @@
|
||||
; Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
; 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.
|
||||
|
||||
@ -606,9 +607,6 @@ fshort-wchar
|
||||
C ObjC C++ ObjC++
|
||||
Force the underlying type for \"wchar_t\" to be \"unsigned short\"
|
||||
|
||||
fshow-column
|
||||
C ObjC C++ ObjC++
|
||||
|
||||
fsigned-bitfields
|
||||
C ObjC C++ ObjC++
|
||||
When \"signed\" or \"unsigned\" is not given make the bitfield signed
|
||||
|
@ -19,7 +19,7 @@
|
||||
; Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
; 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.
|
||||
|
||||
@ -732,6 +732,10 @@ fshared-data
|
||||
Common Report Var(flag_shared_data)
|
||||
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
|
||||
Common Report Var(flag_signaling_nans)
|
||||
Disable optimizations observable by IEEE signaling NaNs
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user