diff mbox

[doc,committed] preprocessor documentation cleanup, part 3/n

Message ID 5862D300.5010509@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Dec. 27, 2016, 8:45 p.m. UTC
This patch takes care of a leftover from the last installment of this 
series -- I'd missed that there was a duplicate entry for -x in 
cppopts.texi.  I've also moved -fno-show-column out of the preprocessor 
options and into the "Diagnostic Message Formatting Options" section, 
where people will be more likely to find it.

More shuffling around and refactoring of include files coming in the 
next installment.

-Sandra
diff mbox

Patch

Index: doc/cppopts.texi
===================================================================
--- doc/cppopts.texi	(revision 243928)
+++ doc/cppopts.texi	(working copy)
@@ -297,25 +297,6 @@  location.  The filename may be absolute
 current directory.
 
 @end ifclear
-@item -x c
-@itemx -x c++
-@itemx -x objective-c
-@itemx -x assembler-with-cpp
-@opindex x
-Specify the source language: C, C++, Objective-C, or assembly.  This has
-nothing to do with standards conformance or extensions; it merely
-selects which base syntax to expect.  If you give none of these options,
-cpp will deduce the language from the extension of the source file:
-@samp{.c}, @samp{.cc}, @samp{.m}, or @samp{.S}.  Some other common
-extensions for C++ and assembly are also recognized.  If cpp does not
-recognize the extension, it will treat the file as C; this is the most
-generic mode.
-
-@emph{Note:} Previous versions of cpp accepted a @option{-lang} option
-which selected both the language and the standards conformance level.
-This option has been removed, because it conflicts with the @option{-l}
-option.
-
 @item -I-
 @opindex I-
 Split the include path.  Any directories specified with @option{-I}
@@ -564,12 +545,6 @@  form @option{-fno-working-directory}.  I
 present in the command line, this option has no effect, since no
 @code{#line} directives are emitted whatsoever.
 
-@item -fno-show-column
-@opindex fno-show-column
-Do not print column numbers in diagnostics.  This may be necessary if
-diagnostics are being scanned by a program that does not understand the
-column numbers, such as @command{dejagnu}.
-
 @item -A @var{predicate}=@var{answer}
 @opindex A
 Make an assertion with the predicate @var{predicate} and answer
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi	(revision 243928)
+++ doc/invoke.texi	(working copy)
@@ -250,7 +250,8 @@  Objective-C and Objective-C++ Dialects}.
 -fdiagnostics-show-location=@r{[}once@r{|}every-line@r{]}  @gol
 -fdiagnostics-color=@r{[}auto@r{|}never@r{|}always@r{]}  @gol
 -fno-diagnostics-show-option -fno-diagnostics-show-caret @gol
--fdiagnostics-parseable-fixits -fdiagnostics-generate-patch}
+-fdiagnostics-parseable-fixits -fdiagnostics-generate-patch @gol
+-fno-show-column}
 
 @item Warning Options
 @xref{Warning Options,,Options to Request or Suppress Warnings}.
@@ -3546,6 +3547,12 @@  are printed.  For example:
 The diff may or may not be colorized, following the same rules
 as for diagnostics (see @option{-fdiagnostics-color}).
 
+@item -fno-show-column
+@opindex fno-show-column
+Do not print column numbers in diagnostics.  This may be necessary if
+diagnostics are being scanned by a program that does not understand the
+column numbers, such as @command{dejagnu}.
+
 @end table
 
 @node Warning Options